-
-
Save rcombs/a1046300acc6e23d418a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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