[FFmpeg-devel] [PATCH 4/4] avcodec/libx264: support value-less keys with x264_params

Michael Niedermayer michaelni at gmx.at
Sat Jul 20 18:55:05 CEST 2013


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavcodec/libx264.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index b48f4e8..3ea46af 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -532,7 +532,7 @@ static av_cold int X264_init(AVCodecContext *avctx)
         AVDictionary *dict    = NULL;
         AVDictionaryEntry *en = NULL;
 
-        if (!av_dict_parse_string(&dict, x4->x264_params, "=", ":", 0)) {
+        if (!av_dict_parse_string(&dict, x4->x264_params, "=", ":", AV_DICT_ALLOW_NULLVAL)) {
             while ((en = av_dict_get(dict, "", en, AV_DICT_IGNORE_SUFFIX))) {
                 if (x264_param_parse(&x4->params, en->key, en->value) < 0)
                     av_log(avctx, AV_LOG_WARNING,
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list