[FFmpeg-devel] [PATCH] h264: don't initialize missing pictures when using a hwaccel
Hendrik Leppkes
h.leppkes at gmail.com
Sun Feb 17 00:25:34 CET 2013
Writing into uninitialized hw surfaces is not supported and triggers an assert inside avpriv_color_frame
---
libavcodec/h264.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 9e0fd9b..2920046 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1711,7 +1711,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;
--
1.8.0.msysgit.0
More information about the ffmpeg-devel
mailing list