[FFmpeg-cvslog] ffmpeg: dont match unspecified media types in MATCH_PER_TYPE_OPT

Michael Niedermayer git at videolan.org
Sat Sep 22 19:11:55 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Sep 22 18:56:10 2012 +0200| [a4271f3d4e4efd749e5101aa2cefa5e483bc7989] | committer: Michael Niedermayer

ffmpeg: dont match unspecified media types in MATCH_PER_TYPE_OPT

This would change existing behavior, and should if done, done seperately.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a4271f3d4e4efd749e5101aa2cefa5e483bc7989
---

 ffmpeg_opt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c
index dc89e67..2e94686 100644
--- a/ffmpeg_opt.c
+++ b/ffmpeg_opt.c
@@ -59,7 +59,7 @@
     int i, ret;\
     for (i = 0; i < o->nb_ ## name; i++) {\
         char *spec = o->name[i].specifier;\
-        if (!strcmp(spec, mediatype) || !*spec)\
+        if (!strcmp(spec, mediatype))\
             outvar = o->name[i].u.type;\
         else if (ret < 0)\
             exit_program(1);\



More information about the ffmpeg-cvslog mailing list