Skip to content

Instantly share code, notes, and snippets.

@rcombs

rcombs/stdin Secret

Created November 10, 2015 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcombs/a1046300acc6e23d418a to your computer and use it in GitHub Desktop.
Save rcombs/a1046300acc6e23d418a to your computer and use it in GitHub Desktop.
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 11c8358..f20398e 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -628,11 +628,10 @@ static int mov_read_hdlr(MOVContext *c, AVIOContext *pb, MOVAtom atom)
av_log(c->fc, AV_LOG_TRACE, "ctype= %.4s (0x%08x)\n", (char*)&ctype, ctype);
av_log(c->fc, AV_LOG_TRACE, "stype= %.4s\n", (char*)&type);
- if (c->fc->nb_streams < 1) { // meta before first trak
- if (type == MKTAG('m','d','t','a')) {
- c->found_hdlr_mdta = 1;
- }
- return 0;
+ if (type == MKTAG('m','d','t','a')) {
+ c->found_hdlr_mdta = 1;
+ if (c->fc->nb_streams < 1) // meta before first trak
+ return 0;
}
st = c->fc->streams[c->fc->nb_streams-1];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment