diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c index 570a4f5439234b611aab553dd6d12aad1bf43f49..31c26f8bd443ea821e772952f3fc86a7cd72fbda 100644 --- a/libavformat/swfdec.c +++ b/libavformat/swfdec.c @@ -407,7 +407,7 @@ 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"); - }else + } else st->codec->pix_fmt = pix_fmt; if (linesize * height > pkt->size) {