# HG changeset patch # User michael # Date 1030572158 0 # Node ID d3fd5d5685944233283beced0efe78133abed8a1 # Parent 3aeb57cc8ac6e2fe95f0fda539f1d5c1fa574a96 passing extra stuff from real stuff to lavc diff -r 3aeb57cc8ac6 -r d3fd5d568594 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Wed Aug 28 21:55:44 2002 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Wed Aug 28 22:02:38 2002 +0000 @@ -183,6 +183,16 @@ #endif } #endif + if( sh->format == mmioFOURCC('R', 'V', '1', '0') + || sh->format == mmioFOURCC('R', 'V', '1', '3')){ + unsigned int* extrahdr=(unsigned int*)(sh->bih+1); + avctx->extradata_size= 8; + avctx->extradata = malloc(avctx->extradata_size); + ((uint32_t*)avctx->extradata)[0] = extrahdr[0]; + ((uint32_t*)avctx->extradata)[1] = extrahdr[1]; +// printf("%X %X %d %d\n", extrahdr[0], extrahdr[1]); + } + /* open it */ if (avcodec_open(avctx, lavc_codec) < 0) { mp_msg(MSGT_DECVIDEO,MSGL_ERR, MSGTR_CantOpenCodec);