# HG changeset patch # User reimar # Date 1367959155 0 # Node ID 98eb9f8026191c8a8286cad6172e40d0ed1fe932 # Parent f69d9caa3d84315f8923378d8ab182afec6f753a 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. diff -r f69d9caa3d84 -r 98eb9f802619 libmpcodecs/ve_lavc.c --- a/libmpcodecs/ve_lavc.c Tue May 07 20:39:14 2013 +0000 +++ b/libmpcodecs/ve_lavc.c Tue May 07 20:39:15 2013 +0000 @@ -667,8 +667,9 @@ 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);