]> git.sesse.net Git - ffmpeg/commitdiff
mxfdec: Only parse next partition pack if parsing forward
authorTomas Härdin <tomas.hardin@codemill.se>
Tue, 20 Mar 2012 10:03:48 +0000 (11:03 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 20 Mar 2012 12:45:19 +0000 (13:45 +0100)
This fixes ticket #1099.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mxfdec.c

index 07ac9fbd523361ba165892a80b4c39365fd03afa..bb580e14472c07c3fb73347ad51b9392f0b6bc1d 100644 (file)
@@ -1877,6 +1877,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++) {