Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-05-20 13:21:36 +0300
committerAnton Khirnov <anton@khirnov.net>2016-06-21 12:19:51 +0300
commit606fb6c032fa44d9fa1efd4971308c228f2ebfff (patch)
tree22b4833291b609784a65136ed83a5d6da911c8a4 /libavcodec/h264_slice.c
parentd1d7678040cd60148f97b372cb4291bcc45b2e22 (diff)
h264: call the hwaccel frame_start() from h264_field_start()
This is a more appropriate place for it.
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r--libavcodec/h264_slice.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 244640fa59..53f745e5e0 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -1344,6 +1344,12 @@ static int h264_field_start(H264Context *h, const H264SliceContext *sl,
return ret;
}
+ if (h->avctx->hwaccel) {
+ ret = h->avctx->hwaccel->start_frame(h->avctx, NULL, 0);
+ if (ret < 0)
+ return ret;
+ }
+
return 0;
}