[FFmpeg-cvslog] Fix type and codetype fields in the MMF header for some phones.

Vidar Madsen git at videolan.org
Wed Mar 21 22:27:27 CET 2012


ffmpeg | branch: master | Vidar Madsen <vidarino at gmail.com> | Wed Mar 21 22:11:25 2012 +0100| [17431f4a4e5c66a669f51dd7eb3d880d70e6dc4c] | committer: Carl Eugen Hoyos

Fix type and codetype fields in the MMF header for some phones.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=17431f4a4e5c66a669f51dd7eb3d880d70e6dc4c
---

 libavformat/mmf.c  |    4 ++--
 tests/ref/lavf/mmf |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/mmf.c b/libavformat/mmf.c
index d1e6f81..6240e49 100644
--- a/libavformat/mmf.c
+++ b/libavformat/mmf.c
@@ -76,8 +76,8 @@ static int mmf_write_header(AVFormatContext *s)
     avio_wb32(pb, 0);
     pos = ff_start_tag(pb, "CNTI");
     avio_w8(pb, 0); /* class */
-    avio_w8(pb, 0); /* type */
-    avio_w8(pb, 0); /* code type */
+    avio_w8(pb, 1); /* type */
+    avio_w8(pb, 1); /* code type */
     avio_w8(pb, 0); /* status */
     avio_w8(pb, 0); /* counts */
     avio_write(pb, "VN:libavcodec,", sizeof("VN:libavcodec,") -1); /* metadata ("ST:songtitle,VN:version,...") */
diff --git a/tests/ref/lavf/mmf b/tests/ref/lavf/mmf
index 756527c..8909784 100644
--- a/tests/ref/lavf/mmf
+++ b/tests/ref/lavf/mmf
@@ -1,3 +1,3 @@
-272b91d8fc31ed43b08246d182719751 *./tests/data/lavf/lavf.mmf
+1982e25aaa5307068c5e0f0fd54b193a *./tests/data/lavf/lavf.mmf
 22609 ./tests/data/lavf/lavf.mmf
 ./tests/data/lavf/lavf.mmf CRC=0x03633476



More information about the ffmpeg-cvslog mailing list