git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
h264: call the hwaccel frame_start() from h264_field_start()
[ffmpeg.git]
/
libavcodec
/
h264_slice.c
diff --git
a/libavcodec/h264_slice.c
b/libavcodec/h264_slice.c
index
244640f
..
53f745e
100644
(file)
--- 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;
}