aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorFrançois Revol <revol@free.fr>2005-01-28 08:08:42 +0000
committerFrançois Revol <revol@free.fr>2005-01-28 08:08:42 +0000
commit46103f6bbd232da256ca8da145b220a0b386afc9 (patch)
treeda8e1f74448a2085b0e9d27b1689a0ae5327da50 /libavformat
parent888053179ca31464310acbcf521e332c682086dd (diff)
downloadffmpeg-46103f6bbd232da256ca8da145b220a0b386afc9.tar.gz
fix the patch to allow Sony PSP MP4 creation
Originally committed as revision 3893 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/movenc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index e97b84dc09..7a1f6ddb28 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -395,7 +395,7 @@ static void putDescr(ByteIOContext *pb, int tag, int size)
static int mov_write_esds_tag(ByteIOContext *pb, MOVTrack* track) // Basic
{
- int decoderSpecificInfoLen = track->vosLen ? descrLength(track->vosLen):0;
+ int decoderSpecificInfoLen;
int pos = url_ftell(pb);
void *vosDataBackup=track->vosData;
int vosLenBackup=track->vosLen;
@@ -420,6 +420,8 @@ static int mov_write_esds_tag(ByteIOContext *pb, MOVTrack* track) // Basic
}
}
+ decoderSpecificInfoLen = track->vosLen ? descrLength(track->vosLen):0;
+
put_be32(pb, 0); // size
put_tag(pb, "esds");
put_be32(pb, 0); // Version