You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
h264: don't initialize missing pictures when using VDPAU.
This fixes an assertion failure when running mplayer -vc ffh264vdpau. Reported by irc user ioni.
This commit is contained in:
@@ -1704,7 +1704,8 @@ int ff_h264_frame_start(H264Context *h)
|
|||||||
|
|
||||||
if ((ret = alloc_picture(h, pic)) < 0)
|
if ((ret = alloc_picture(h, pic)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
if(!h->sync && !h->avctx->hwaccel)
|
if(!h->sync && !h->avctx->hwaccel &&
|
||||||
|
!(h->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU))
|
||||||
avpriv_color_frame(&pic->f, c);
|
avpriv_color_frame(&pic->f, c);
|
||||||
|
|
||||||
h->cur_pic_ptr = pic;
|
h->cur_pic_ptr = pic;
|
||||||
|
Reference in New Issue
Block a user