If alex is too lazy to apply a patch, then i'll do it :)

This one fixes a sig11 when the -vo can't be initialized and get_buffer fails
for libavcodec


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11373 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
attila 2003-11-03 10:42:28 +00:00
parent 33abd0ca16
commit f10ca60dbd
1 changed files with 3 additions and 0 deletions

View File

@ -728,6 +728,9 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
mpi->stride[2]=pic->linesize[2];
}
if (!mpi->planes[0])
return NULL;
if(avctx->pix_fmt==PIX_FMT_YUV422P && mpi->chroma_y_shift==1){
// we have 422p but user wants 420p
mpi->stride[1]*=2;