Web lists-archives.org

[MPlayer-dev-eng] [PATCH] fix v4l2 free_demuxer crash - uvcvideo




Hi All!

This patch fix v4l2 free_demuxer crash to uvcvideo usb video driver.

Best regards.
Attila
Index: stream/tvi_v4l2.c
===================================================================
--- stream/tvi_v4l2.c	(revision 26920)
+++ stream/tvi_v4l2.c	(working copy)
@@ -1089,6 +1089,7 @@
         struct v4l2_buffer buf;
 
         /* get performance */
+        if(priv->standard.frameperiod.denominator && priv->standard.frameperiod.numerator)
         frames = 1 + (priv->curr_frame - priv->first_frame +
                       priv->standard.frameperiod.numerator * 500000 /
                       priv->standard.frameperiod.denominator) *
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng