Mercurial > mplayer.hg
changeset 34929:c410ef9752a0
Initialize a few more AVFrame fields to avoid FFmpeg errors.
However this really needs to be done via FFmpeg somehow to avoid
issues each time new fields are added, either by exposing
ff_init_buffer_info as public API or by calling get_buffer etc.
through wrappers that take care of the initialization.
author | reimar |
---|---|
date | Sat, 14 Jul 2012 11:37:22 +0000 |
parents | 185240aa6270 |
children | 27d084619d91 |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Fri Jul 13 21:47:50 2012 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Sat Jul 14 11:37:22 2012 +0000 @@ -674,6 +674,10 @@ pic->linesize[2]= mpi->stride[2]; pic->linesize[3]= mpi->stride[3]; + pic->width = avctx->width; + pic->height = avctx->height; + pic->format = avctx->pix_fmt; + pic->opaque = mpi; //printf("%X\n", (int)mpi->planes[0]); #if 0