* commit 'c80a816142699dea9cf9fa66689a7838a487ed7e': h263dec: call get_format() on resolution changes
Unified · Split
| @@ -548,6 +548,12 @@ retry: · 547 unmodified lines | ||
| 548 | 548 | |
| 549 | 549 | if ((ret = ff_mpv_common_frame_size_change(s))) |
| 550 | 550 | return ret; |
| 551 | + | |
| 552 | + if (avctx->pix_fmt != h263_get_format(avctx)) { | |
| 553 | + av_log(avctx, AV_LOG_ERROR, "format change not supported\n"); | |
| 554 | + avctx->pix_fmt = AV_PIX_FMT_NONE; | |
| 555 | + return AVERROR_UNKNOWN; | |
| 556 | + } | |
| 551 | 557 | } |
| 552 | 558 | |
| 553 | 559 | if (s->codec_id == AV_CODEC_ID_H263 || |