avformat/swfdec: Do not error out on pixel format changes
Instead print an error and continue
Fixes Ticket4702
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 6a1204a1a4
)
This commit is contained in:

committed by
Carl Eugen Hoyos

parent
e0537e49a4
commit
ada778c700
@@ -384,10 +384,8 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
}
|
}
|
||||||
if (st->codec->pix_fmt != AV_PIX_FMT_NONE && st->codec->pix_fmt != pix_fmt) {
|
if (st->codec->pix_fmt != AV_PIX_FMT_NONE && st->codec->pix_fmt != pix_fmt) {
|
||||||
av_log(s, AV_LOG_ERROR, "pixel format change unsupported\n");
|
av_log(s, AV_LOG_ERROR, "pixel format change unsupported\n");
|
||||||
res = AVERROR_PATCHWELCOME;
|
}else
|
||||||
goto bitmap_end;
|
st->codec->pix_fmt = pix_fmt;
|
||||||
}
|
|
||||||
st->codec->pix_fmt = pix_fmt;
|
|
||||||
|
|
||||||
if (linesize * height > pkt->size) {
|
if (linesize * height > pkt->size) {
|
||||||
res = AVERROR_INVALIDDATA;
|
res = AVERROR_INVALIDDATA;
|
||||||
|
Reference in New Issue
Block a user