diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-07-08 02:43:02 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2015-07-08 12:42:36 +0200 |
commit | a5e18e900f7d699aec0709adaa8f40f6e02f751c (patch) | |
tree | 00362945ee1df680a7220d7f0ef1d0b326f5e523 | |
parent | 8c5d196f502666ef0311f47c416aa83e89ebeede (diff) | |
download | ffmpeg-a5e18e900f7d699aec0709adaa8f40f6e02f751c.tar.gz |
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 6a1204a1a46674084b1e6b92562f81aaab7aac69)
-rw-r--r-- | libavformat/swfdec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c index d34d3d90df..570a4f5439 100644 --- a/libavformat/swfdec.c +++ b/libavformat/swfdec.c @@ -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; |