Regression since a1133db30ef07896afd96f067e5c51531a4e85ab
Unified · Split
| @@ -1889,7 +1889,7 @@ int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) · 1888 unmodified lines | ||
| 1889 | 1889 | if (hwaccel) { |
| 1890 | 1890 | if (hwaccel->alloc_frame) { |
| 1891 | 1891 | ret = hwaccel->alloc_frame(avctx, frame); |
| 1892 | − goto fail; | |
| 1892 | + goto end; | |
| 1893 | 1893 | } |
| 1894 | 1894 | } else |
| 1895 | 1895 | avctx->sw_pix_fmt = avctx->pix_fmt; |
| @@ -1904,6 +1904,7 @@ int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) · 8 unmodified lines | ||
| 1904 | 1904 | if (ret < 0) |
| 1905 | 1905 | goto fail; |
| 1906 | 1906 | |
| 1907 | +end: | |
| 1907 | 1908 | if (avctx->codec_type == AVMEDIA_TYPE_VIDEO && !override_dimensions && |
| 1908 | 1909 | !(avctx->codec->caps_internal & FF_CODEC_CAP_EXPORTS_CROPPING)) { |
| 1909 | 1910 | frame->width = avctx->width; |