[FFmpeg-cvslog] ffplay: set codec_id in codec context
Stefano Sabatini
git at videolan.org
Sun Dec 16 11:03:36 CET 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sat Dec 15 22:42:21 2012 +0100| [1cbb11cda79eb9796ba5d00653819706c566dab8] | committer: Stefano Sabatini
ffplay: set codec_id in codec context
Set codec id in case another codec is forced on the context (e.g. when
the user specify the codec with -codec).
For example fix:
ffplay -vcodec pgmyuv -i "tests/vsynth1/%02d.pgm"
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1cbb11cda79eb9796ba5d00653819706c566dab8
---
ffplay.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ffplay.c b/ffplay.c
index 3384c6c..2561a07 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2317,6 +2317,7 @@ static int stream_component_open(VideoState *is, int stream_index)
if (!codec)
return -1;
+ avctx->codec_id = codec->id;
avctx->workaround_bugs = workaround_bugs;
avctx->lowres = lowres;
if(avctx->lowres > codec->max_lowres){
More information about the ffmpeg-cvslog
mailing list