[Mlt-devel] Broken v4l with recent FFmpeg [PATCH]
Brought to you by:
ddennedy,
lilo_booter
From: j-b-m <j-...@us...> - 2011-05-21 23:49:24
|
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 |