aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-07-08 02:43:02 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2015-07-08 12:44:44 +0200
commit51a624bb80b3a79b75c9a8b813f74da45365d646 (patch)
treed0d7c543e1ee89a6f50735381a8116e1075e9b53
parente9502ee26ae14383fe1963f2de6a04ef07dd31f1 (diff)
downloadffmpeg-51a624bb80b3a79b75c9a8b813f74da45365d646.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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c
index 528bc236f2..b2c652eb9c 100644
--- a/libavformat/swfdec.c
+++ b/libavformat/swfdec.c
@@ -390,10 +390,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;