Commit 1d6f6ff4 authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Michael Niedermayer

h264: don't initialize missing pictures when using a hwaccel

Writing into uninitialized hw surfaces is not supported and triggers an assert inside avpriv_color_frame
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a56fd9ed
......@@ -1704,7 +1704,7 @@ int ff_h264_frame_start(H264Context *h)
if ((ret = alloc_picture(h, pic)) < 0)
return ret;
if(!h->sync)
if(!h->sync && !h->avctx->hwaccel)
avpriv_color_frame(&pic->f, c);
h->cur_pic_ptr = pic;
......
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