[Ffmpeg-devel] [PATCH] movenc should set depth in stsd atom
Reimar Döffinger
Reimar.Doeffinger
Wed Feb 7 21:13:56 CET 2007
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
-------------- next part --------------
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);
More information about the ffmpeg-devel
mailing list