Commit 514d9bb5 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h264: use goto end instead of return for hwaccel fails as well

This is more correct
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4b030025
......@@ -1598,7 +1598,7 @@ again:
if (h->avctx->hwaccel &&
(ret = h->avctx->hwaccel->start_frame(h->avctx, buf, buf_size)) < 0)
return ret;
goto end;
if (CONFIG_H264_VDPAU_DECODER &&
h->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU)
ff_vdpau_h264_picture_start(h);
......@@ -1610,7 +1610,7 @@ again:
&buf[buf_index - consumed],
consumed);
if (ret < 0)
return ret;
goto end;
} else if (CONFIG_H264_VDPAU_DECODER &&
h->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU) {
ff_vdpau_add_data_chunk(h->cur_pic_ptr->f.data[0],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment