aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-11-18 09:09:57 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-11-18 09:09:57 +0000
commit12e416c848579fc01f859022755b875676c96eda (patch)
tree2cae9dc9564fd6b19de01da03b54118745192d8e
parenta45bdbc4f52c40c98c71e67f16f9ba98f0fe39f8 (diff)
downloadffmpeg-12e416c848579fc01f859022755b875676c96eda.tar.gz
decrease atom size, fix broken files missing version/flags
Originally committed as revision 15872 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/mov.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 18d3e73131..17973052e7 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1378,7 +1378,8 @@ static int mov_read_ilst(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static int mov_read_meta(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
{
- url_fskip(pb, 4);
+ url_fskip(pb, 4); // version + flags
+ atom.size -= 4;
return mov_read_default(c, pb, atom);
}