Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. --- ffmpeg-0.5.2/libavformat/mov.c 2010-02-09 20:44:49.000000000 +0200
  2. +++ ffmpeg-0.6.1/libavformat/mov.c 2010-05-27 23:40:09.000000000 +0300
  3. @@ -313,10 +421,15 @@
  4.  
  5. static int mov_read_hdlr(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
  6. {
  7. - AVStream *st = c->fc->streams[c->fc->nb_streams-1];
  8. + AVStream *st;
  9. uint32_t type;
  10. uint32_t ctype;
  11.  
  12. + if (c->fc->nb_streams < 1) // meta before first trak
  13. + return 0;
  14. +
  15. + st = c->fc->streams[c->fc->nb_streams-1];
  16. +
  17. get_byte(pb); /* version */
  18. get_be24(pb); /* flags */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement