Commit 6a1204a1 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/swfdec: Do not error out on pixel format changes

Instead print an error and continue

Fixes Ticket4702
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b8c438e7
......@@ -407,10 +407,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) {
av_log(s, AV_LOG_ERROR, "pixel format change unsupported\n");
res = AVERROR_PATCHWELCOME;
goto bitmap_end;
}
st->codec->pix_fmt = pix_fmt;
}else
st->codec->pix_fmt = pix_fmt;
if (linesize * height > pkt->size) {
res = AVERROR_INVALIDDATA;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment