aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Härdin <tomas.hardin@codemill.se>2012-03-20 11:03:48 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-03-21 13:25:59 +0100
commite687d77d150a325b4775957a6803e4ed998bb1ad (patch)
tree70429998bdb6365c04444cc2fee010ec3353f00c
parentabfafb6c81f3e53524ba6762f6b36bb0112c3171 (diff)
downloadffmpeg-e687d77d150a325b4775957a6803e4ed998bb1ad.tar.gz
mxfdec: Only parse next partition pack if parsing forward
This fixes ticket #1099. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 393b81f0934866bd7fff0a2b113623dd9ee6808f)
-rw-r--r--libavformat/mxfdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index cb38e5caaf..f63cff9be8 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -1725,6 +1725,9 @@ static int mxf_read_header(AVFormatContext *s, AVFormatParameters *ap)
/* next partition pack - keep going, seek to previous partition or stop */
if(mxf_parse_handle_partition_or_eof(mxf) <= 0)
break;
+ else if (mxf->parsing_backward)
+ continue;
+ /* we're still parsing forward. proceed to parsing this partition pack */
}
for (metadata = mxf_metadata_read_table; metadata->read; metadata++) {