[Mplayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.45,1.46
Michael Niedermayer
michael at mplayerhq.hu
Thu Aug 29 00:02:40 CEST 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv31007
Modified Files:
vd_ffmpeg.c
Log Message:
passing extra stuff from real stuff to lavc
Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- vd_ffmpeg.c 21 Aug 2002 19:08:24 -0000 1.45
+++ vd_ffmpeg.c 28 Aug 2002 22:02:38 -0000 1.46
@@ -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);
More information about the MPlayer-cvslog
mailing list