[FFmpeg-cvslog] Do not overwrite VDPAU structures in ff_MPV_frame_start().
Carl Eugen Hoyos
git at videolan.org
Fri Apr 18 10:33:20 CEST 2014
ffmpeg | branch: release/2.2 | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Apr 18 04:56:34 2014 +0200| [26b6d70c72e4c8204a428c4e64197cdf1fc8b3cf] | committer: Carl Eugen Hoyos
Do not overwrite VDPAU structures in ff_MPV_frame_start().
Fixes crashes with VDR and MPlayer as reported by irc user crow.
(cherry picked from commit 941b2240f2ce59c41f4a9ffec88c512f64c75613)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=26b6d70c72e4c8204a428c4e64197cdf1fc8b3cf
---
libavcodec/mpegvideo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 3df1310..4dc41e8 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1774,7 +1774,7 @@ int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
return -1;
}
- if (!avctx->hwaccel) {
+ if (!avctx->hwaccel && !(avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU)) {
for(i=0; i<avctx->height; i++)
memset(s->last_picture_ptr->f.data[0] + s->last_picture_ptr->f.linesize[0]*i,
0x80, avctx->width);
More information about the ffmpeg-cvslog
mailing list