Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- ffmpeg-0.5.2/libavformat/mov.c 2010-02-09 20:44:49.000000000 +0200
- +++ ffmpeg-0.6.1/libavformat/mov.c 2010-05-27 23:40:09.000000000 +0300
- @@ -313,10 +421,15 @@
- static int mov_read_hdlr(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
- {
- - AVStream *st = c->fc->streams[c->fc->nb_streams-1];
- + AVStream *st;
- uint32_t type;
- uint32_t ctype;
- + if (c->fc->nb_streams < 1) // meta before first trak
- + return 0;
- +
- + st = c->fc->streams[c->fc->nb_streams-1];
- +
- get_byte(pb); /* version */
- get_be24(pb); /* flags */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement