aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
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:52:50 +0200
commitada778c7002a53d1e1efb3d91843a5c574f17571 (patch)
treecd50992e5ce08de70101c5f7d5b16a055f80c8a0 /libavformat
parente0537e49a45ef9c9cf2d8b3d7d72e10897259bed (diff)
downloadffmpeg-ada778c7002a53d1e1efb3d91843a5c574f17571.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)
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/swfdec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c
index bf5b581d5d..43a82b8b0e 100644
--- a/libavformat/swfdec.c
+++ b/libavformat/swfdec.c
@@ -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) {
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;