Mercurial > mplayer.hg
comparison libmpcodecs/vd_vfw.c @ 7275:fb25090e525d
1000l - planar YUV support fixed (indeo 3,4,5, i263 etc)
we shouldn't do planes[1]==NULL for formats like planar yuv
author | arpi |
---|---|
date | Wed, 04 Sep 2002 23:17:53 +0000 |
parents | 6cca0ab10e19 |
children | 2357ee501582 |
comparison
equal
deleted
inserted
replaced
7274:984bd81b79f1 | 7275:fb25090e525d |
---|---|
315 mp_msg(MSGT_DECVIDEO,MSGL_WARN,"Error decompressing frame, err=%d\n",ret); | 315 mp_msg(MSGT_DECVIDEO,MSGL_WARN,"Error decompressing frame, err=%d\n",ret); |
316 return NULL; | 316 return NULL; |
317 } | 317 } |
318 | 318 |
319 // export palette: | 319 // export palette: |
320 if(mpi->imgfmt==IMGFMT_RGB8 || mpi->imgfmt==IMGFMT_BGR8){ | |
320 if (priv->palette) | 321 if (priv->palette) |
321 { | 322 { |
322 mpi->planes[1] = priv->palette; | 323 mpi->planes[1] = priv->palette; |
323 mpi->flags |= MP_IMGFLAG_RGB_PALETTE; | 324 mpi->flags |= MP_IMGFLAG_RGB_PALETTE; |
324 mp_dbg(MSGT_DECVIDEO, MSGL_DBG2, "Found and copied palette\n"); | 325 mp_dbg(MSGT_DECVIDEO, MSGL_DBG2, "Found and copied palette\n"); |
325 } | 326 } |
326 else | 327 else |
327 mpi->planes[1]=NULL; | 328 mpi->planes[1]=NULL; |
328 | 329 } |
330 | |
329 return mpi; | 331 return mpi; |
330 } | 332 } |
331 #endif | 333 #endif |