Unified · Split
| @@ -805,6 +805,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, · 804 unmodified lines | |||
| 805 | if (ctx->frame.data[0]) | 805 | if (ctx->frame.data[0]) |
| 806 | avctx->release_buffer(avctx, &ctx->frame); | 806 | avctx->release_buffer(avctx, &ctx->frame); |
| 807 | 807 | ||
| 808 | avcodec_set_dimensions(avctx, ctx->planes[0].width, ctx->planes[0].height); | ||
| 808 | ctx->frame.reference = 0; | 809 | ctx->frame.reference = 0; |
| 809 | if ((result = avctx->get_buffer(avctx, &ctx->frame)) < 0) { | 810 | if ((result = avctx->get_buffer(avctx, &ctx->frame)) < 0) { |
| 810 | av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); | 811 | av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); |