prores: do not set pixel format on codec init
authorMans Rullgard <mans@mansr.com>
Sat, 15 Oct 2011 13:35:10 +0000 (14:35 +0100)
committerMans Rullgard <mans@mansr.com>
Sat, 15 Oct 2011 13:59:44 +0000 (14:59 +0100)
commitcd14e297e63c89dfe44ebfe4e6a82b617352a081
tree72c159bcde640131f107ea6ad52854b0289ecab5
parent7b6883898ff9000b9a9e71fc1fb6e842ec850a79
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>
libavcodec/proresdec.c
tests/ref/fate/prores-alpha