[FFmpeg-cvslog] mxfdec: Only parse next partition pack if parsing forward

Tomas Härdin git at videolan.org
Wed Mar 21 13:26:32 CET 2012


ffmpeg | branch: release/0.9 | Tomas Härdin <tomas.hardin at codemill.se> | Tue Mar 20 11:03:48 2012 +0100| [515b7f08b16c202d245f58a1e378eb1431aa5541] | committer: Carl Eugen Hoyos

mxfdec: Only parse next partition pack if parsing forward

This fixes ticket #1099.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 393b81f0934866bd7fff0a2b113623dd9ee6808f)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=515b7f08b16c202d245f58a1e378eb1431aa5541
---

 libavformat/mxfdec.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index e97b2a4..8fdc5ca 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -1662,6 +1662,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++) {



More information about the ffmpeg-cvslog mailing list