aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-10-15 14:35:10 +0100
committerMans Rullgard <mans@mansr.com>2011-10-15 14:59:44 +0100
commitcd14e297e63c89dfe44ebfe4e6a82b617352a081 (patch)
tree72c159bcde640131f107ea6ad52854b0289ecab5 /libavcodec
parent7b6883898ff9000b9a9e71fc1fb6e842ec850a79 (diff)
downloadffmpeg-cd14e297e63c89dfe44ebfe4e6a82b617352a081.tar.gz
prores: do not set pixel format on codec init
The pixel format is not known until the frame header is parsed. Guessing it here only causes trouble for the caller if the guess turns out to be wrong (and actually causes very wrong output by avconv/avplay). Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/proresdec.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavcodec/proresdec.c b/libavcodec/proresdec.c
index 2e0cbf1f26..ca465f4d8e 100644
--- a/libavcodec/proresdec.c
+++ b/libavcodec/proresdec.c
@@ -105,8 +105,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
ctx->total_slices = 0;
ctx->slice_data = NULL;
- avctx->pix_fmt = PIX_FMT_YUV422P10; // set default pixel format
-
avctx->bits_per_raw_sample = PRORES_BITS_PER_SAMPLE;
ff_proresdsp_init(&ctx->dsp);