fix hdlr descr in mp4 which use c string, patch by Larbi Joubala, larbi dot joubala at resonate-mp4 dot com

Originally committed as revision 18911 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Larbi Joubala 2009-05-23 07:17:17 +00:00 committed by Baptiste Coudurier
parent 84df78b476
commit 606d48cee1
3 changed files with 6 additions and 3 deletions

View file

@ -1013,8 +1013,11 @@ static int mov_write_hdlr_tag(ByteIOContext *pb, MOVTrack *track)
put_be32(pb ,0); /* reserved */
put_be32(pb ,0); /* reserved */
put_be32(pb ,0); /* reserved */
put_byte(pb, strlen(descr)); /* string counter */
if (!track || track->mode == MODE_MOV)
put_byte(pb, strlen(descr)); /* pascal string */
put_buffer(pb, descr, strlen(descr)); /* handler description */
if (track && track->mode != MODE_MOV)
put_byte(pb, 0); /* c string */
return updateSize(pb, pos);
}