Commit cb7190cd authored by Janne Grunau's avatar Janne Grunau

rv34: error out on size changes with frame threading

parent b00307ec
...@@ -1662,6 +1662,13 @@ int ff_rv34_decode_frame(AVCodecContext *avctx, ...@@ -1662,6 +1662,13 @@ int ff_rv34_decode_frame(AVCodecContext *avctx,
if (s->width != si.width || s->height != si.height) { if (s->width != si.width || s->height != si.height) {
int err; int err;
if (HAVE_THREADS &&
(s->avctx->active_thread_type & FF_THREAD_FRAME)) {
av_log_missing_feature(s->avctx, "Width/height changing with "
"frame threading is", 0);
return AVERROR_PATCHWELCOME;
}
av_log(s->avctx, AV_LOG_WARNING, "Changing dimensions to %dx%d\n", av_log(s->avctx, AV_LOG_WARNING, "Changing dimensions to %dx%d\n",
si.width, si.height); si.width, si.height);
ff_MPV_common_end(s); ff_MPV_common_end(s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment