[Ffmpeg-devel] [PATCH] xan_dpcm in MPlayer + libavformat

Diego Biurrun diego
Sat Nov 18 01:15:30 CET 2006


Attached patch is necessary to make xan_dpcm work in MPlayer with the
libavformat AVI demuxer.  Since it just adds another line to an already
present hack I hope it's acceptable...

Diego
-------------- next part --------------
Index: libavformat/avidec.c
===================================================================
--- libavformat/avidec.c	(revision 7117)
+++ libavformat/avidec.c	(working copy)
@@ -451,8 +451,10 @@
                         st->need_parsing = 0;
                     /* force parsing as several audio frames can be in
                        one packet */
-                    if (xan_video)
+                    if (xan_video){
                         st->codec->codec_id = CODEC_ID_XAN_DPCM;
+                        st->codec->codec_tag = 0;
+                    }
                     break;
                 default:
                     st->codec->codec_type = CODEC_TYPE_DATA;



More information about the ffmpeg-devel mailing list