Browse Source

4xm: don't rely on get_buffer() initializing the frame.

tags/n1.1
Anton Khirnov 12 years ago
parent
commit
b047c68783
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/4xm.c

+ 1
- 0
libavcodec/4xm.c View File

@@ -854,6 +854,7 @@ static int decode_frame(AVCodecContext *avctx, void *data,
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return -1;
}
memset(f->last_picture.data[0], 0, avctx->height * FFABS(f->last_picture.linesize[0]));
}

p->pict_type = AV_PICTURE_TYPE_P;


Loading…
Cancel
Save