diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-09-29 11:29:10 +0300 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-09-29 16:57:32 +0300 |
commit | bfbf86ef18f756c4e27ab569309ef8bc7a5531ac (patch) | |
tree | 56d519185f4e61567e5b5349f0b72a0628cd0f01 /ffmpeg.c | |
parent | e84eeca5779b894ea1739296e17c4361d4638de7 (diff) |
ffmpeg: pass the hwaccel frames context to the decoder
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2547,6 +2547,13 @@ static enum AVPixelFormat get_format(AVCodecContext *s, const enum AVPixelFormat } continue; } + + if (ist->hw_frames_ctx) { + s->hw_frames_ctx = av_buffer_ref(ist->hw_frames_ctx); + if (!s->hw_frames_ctx) + return AV_PIX_FMT_NONE; + } + ist->active_hwaccel_id = hwaccel->id; ist->hwaccel_pix_fmt = *p; break; |