Commit b46a77f19d accidentally broke this (requested change that was added to the patch later and which was not fully tested).
Unified · Split
| @@ -698,11 +698,9 @@ int ff_decode_get_hw_frames_ctx(AVCodecContext *avctx, · 697 unmodified lines | ||
| 698 | 698 | ret = avcodec_get_hw_frames_parameters(avctx, |
| 699 | 699 | avctx->hw_device_ctx, |
| 700 | 700 | avctx->hwaccel->pix_fmt, |
| 701 | − avctx->hw_frames_ctx); | |
| 702 | − if (ret < 0) { | |
| 703 | − av_buffer_unref(&avctx->hw_frames_ctx); | |
| 701 | + &avctx->hw_frames_ctx); | |
| 702 | + if (ret < 0) | |
| 704 | 703 | return ret; |
| 705 | − } | |
| 706 | 704 | |
| 707 | 705 | frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data; |
| 708 | 706 | |