Browse Source

Do not overwrite VDPAU structures in ff_MPV_frame_start().

Fixes crashes with VDR and MPlayer as reported by irc user crow.
tags/n2.3
Carl Eugen Hoyos 12 years ago
parent
commit
941b2240f2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mpegvideo.c

+ 1
- 1
libavcodec/mpegvideo.c View File

@@ -1789,7 +1789,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);


Loading…
Cancel
Save