aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mxfdec.c
diff options
context:
space:
mode:
authorTomas Härdin <tomas.hardin@codemill.se>2012-03-20 11:03:48 +0100
committerLuca Barbato <lu_zero@gentoo.org>2012-07-10 13:51:04 +0200
commit83728d2d36721015fd000ed58216a73867281e69 (patch)
tree10be705d4f4f615ed18f4bc811ccc1e4b63cd784 /libavformat/mxfdec.c
parent34ca5ae51d7d411a5a891521a79c1284e046bf2f (diff)
downloadffmpeg-83728d2d36721015fd000ed58216a73867281e69.tar.gz
mxfdec: only parse next partition pack if parsing forward
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/mxfdec.c')
-rw-r--r--libavformat/mxfdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 43e5135e56..796a97f2fe 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -1873,6 +1873,9 @@ static int mxf_read_header(AVFormatContext *s)
/* 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++) {