Hi!

The recent changes in MLT to use the new FFmpeg API broke v4l capture with 
libavformat > 52.

The patch below fixes v4l capture with current FFmpeg's git version.

regards
jb


diff --git a/src/modules/avformat/producer_avformat.c 
b/src/modules/avformat/producer_avformat.c
index e1f88de..c659dc7 100644
--- a/src/modules/avformat/producer_avformat.c
+++ b/src/modules/avformat/producer_avformat.c
@@ -562,7 +562,7 @@ static int producer_open( producer_avformat self, 
mlt_profile profile, char *fil
 
        // Only if there is not a protocol specification that avformat can 
handle
 #if LIBAVFORMAT_VERSION_MAJOR > 52
-       if ( mrl && !avio_check( file, 0 ) )
+       if ( mrl && avio_check( file, 0 ) < 0 )
 #else
        if ( mrl && !url_exist( file ) )
 #endif

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to