History

avcodec/decode: fix decoding when frames are allocated using AVHWAccel.alloc_frame()

Regression since a1133db30ef07896afd96f067e5c51531a4e85ab

James Almer committed 6 years ago

Commit b6d65971 parent 6d4fdb41 file · +2 −1Browse files

Unified · Split

libavcodec/decode.c+2−1
@@ -1889,7 +1889,7 @@ int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) · 1888 unmodified lines
18891889 if (hwaccel) {
18901890 if (hwaccel->alloc_frame) {
18911891 ret = hwaccel->alloc_frame(avctx, frame);
1892− goto fail;
1892+ goto end;
18931893 }
18941894 } else
18951895 avctx->sw_pix_fmt = avctx->pix_fmt;
@@ -1904,6 +1904,7 @@ int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) · 8 unmodified lines
19041904 if (ret < 0)
19051905 goto fail;
19061906
1907+end:
19071908 if (avctx->codec_type == AVMEDIA_TYPE_VIDEO && !override_dimensions &&
19081909 !(avctx->codec->caps_internal & FF_CODEC_CAP_EXPORTS_CROPPING)) {
19091910 frame->width = avctx->width;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t