aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-12-15 22:42:21 +0100
committerStefano Sabatini <stefasab@gmail.com>2012-12-16 10:58:02 +0100
commit1cbb11cda79eb9796ba5d00653819706c566dab8 (patch)
treef4498d01531933ced30c48fda80729ec752e300b /ffplay.c
parentcb0f97b59d67bda2c33586922640e65e128c17fb (diff)
downloadffmpeg-1cbb11cda79eb9796ba5d00653819706c566dab8.tar.gz
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"
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index 3384c6cba5..2561a07419 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){