Gmane
Picon Picon
From: Reimar Döffinger <Reimar.Doeffinger <at> stud.uni-karlsruhe.de>
Subject: [PATCH] movenc should set depth in stsd atom
Newsgroups: gmane.comp.video.ffmpeg.devel
Date: 2007-02-07 20:13:56 GMT (1 year, 21 weeks, 19 hours and 17 minutes ago)
Hello,
have not actually tested it, but since the demuxer reads bits_per_sample
from that field I would expect it makes sense to write it there in the
muxer...
Comments?

Greetings,
Reimar Döffinger
Index: libavformat/movenc.c
===================================================================
--- libavformat/movenc.c	(revision 7876)
+++ libavformat/movenc.c	(working copy)
@@ -639,7 +639,7 @@
     put_byte(pb, strlen(compressor_name));
     put_buffer(pb, compressor_name, 31);

-    put_be16(pb, 0x18); /* Reserved */
+    put_be16(pb, track->enc->bits_per_sample); /* depth */
     put_be16(pb, 0xffff); /* Reserved */
     if(track->enc->codec_id == CODEC_ID_MPEG4)
         mov_write_esds_tag(pb, track);
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel <at> mplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel