[MPlayer-cvslog] r36246 - trunk/libmpcodecs/ve_lavc.c

reimar subversion at mplayerhq.hu
Tue May 7 22:39:15 CEST 2013


Author: reimar
Date: Tue May  7 22:39:15 2013
New Revision: 36246

Log:
Fix incorrect error printing code.

The code worked during testing by pure dumb luck,
the right pointer ended up just at the right place
by chance.

Modified:
   trunk/libmpcodecs/ve_lavc.c

Modified: trunk/libmpcodecs/ve_lavc.c
==============================================================================
--- trunk/libmpcodecs/ve_lavc.c	Tue May  7 22:39:14 2013	(r36245)
+++ trunk/libmpcodecs/ve_lavc.c	Tue May  7 22:39:15 2013	(r36246)
@@ -667,8 +667,9 @@ static int config(struct vf_instance *vf
 	return 0;
     }
     if (av_dict_count(opts)) {
-        AVDictionaryEntry *e = av_dict_get(opts, "", NULL, 0);
-        mp_msg(MSGT_MENCODER,MSGL_ERR,"Unknown option %s\n");
+        AVDictionaryEntry *e = NULL;
+        while ((e = av_dict_get(opts, "", e, AV_DICT_IGNORE_SUFFIX)))
+            mp_msg(MSGT_MENCODER,MSGL_ERR,"Unknown option %s\n", e->key);
         return 0;
     }
     av_dict_free(&opts);


More information about the MPlayer-cvslog mailing list