[FFmpeg-devel] [PATCH] ffprobe: set codec options when opening the decoder with avcodec_open2()

Stefano Sabatini stefasab at gmail.com
Thu Mar 7 02:12:36 CET 2013


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

diff --git a/ffprobe.c b/ffprobe.c
index 940e979..c3f60f3 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1829,7 +1829,7 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename)
             av_log(NULL, AV_LOG_ERROR,
                     "Unsupported codec with id %d for input stream %d\n",
                     stream->codec->codec_id, stream->index);
-        } else if (avcodec_open2(stream->codec, codec, NULL) < 0) {
+        } else if (avcodec_open2(stream->codec, codec, &codec_opts) < 0) {
             av_log(NULL, AV_LOG_ERROR, "Error while opening codec for input stream %d\n",
                    stream->index);
         }
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list