aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264dec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-05-20 12:21:36 +0200
committerAnton Khirnov <anton@khirnov.net>2016-06-21 11:19:51 +0200
commit606fb6c032fa44d9fa1efd4971308c228f2ebfff (patch)
tree22b4833291b609784a65136ed83a5d6da911c8a4 /libavcodec/h264dec.c
parentd1d7678040cd60148f97b372cb4291bcc45b2e22 (diff)
downloadffmpeg-606fb6c032fa44d9fa1efd4971308c228f2ebfff.tar.gz
h264: call the hwaccel frame_start() from h264_field_start()
This is a more appropriate place for it.
Diffstat (limited to 'libavcodec/h264dec.c')
-rw-r--r--libavcodec/h264dec.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index c99f6e6ec7..b98d1416c1 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -722,10 +722,6 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size)
if (h->current_slice == 1) {
if (!(avctx->flags2 & AV_CODEC_FLAG2_CHUNKS))
decode_postinit(h, i >= nals_needed);
-
- if (h->avctx->hwaccel &&
- (ret = h->avctx->hwaccel->start_frame(h->avctx, NULL, 0)) < 0)
- return ret;
}
if (sl->redundant_pic_count == 0 &&