summaryrefslogtreecommitdiffstats
path: root/libavcodec/h263dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-14 00:03:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-14 00:04:18 +0200
commitb9918a7688024b178cbfa96ff30362b6eb4f611c (patch)
tree19cfe7431ce93c2cbdaa35740655db60b4e0d180 /libavcodec/h263dec.c
parent40f2b16d527319ad8dfd78a7925b984dc05cfa9e (diff)
parentc80a816142699dea9cf9fa66689a7838a487ed7e (diff)
downloadffmpeg-streaming-b9918a7688024b178cbfa96ff30362b6eb4f611c.zip
ffmpeg-streaming-b9918a7688024b178cbfa96ff30362b6eb4f611c.tar.gz
Merge commit 'c80a816142699dea9cf9fa66689a7838a487ed7e'
* commit 'c80a816142699dea9cf9fa66689a7838a487ed7e': h263dec: call get_format() on resolution changes Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r--libavcodec/h263dec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c
index c5e38fd..4ef7825 100644
--- a/libavcodec/h263dec.c
+++ b/libavcodec/h263dec.c
@@ -548,6 +548,12 @@ retry:
if ((ret = ff_mpv_common_frame_size_change(s)))
return ret;
+
+ if (avctx->pix_fmt != h263_get_format(avctx)) {
+ av_log(avctx, AV_LOG_ERROR, "format change not supported\n");
+ avctx->pix_fmt = AV_PIX_FMT_NONE;
+ return AVERROR_UNKNOWN;
+ }
}
if (s->codec_id == AV_CODEC_ID_H263 ||
OpenPOWER on IntegriCloud