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

Tomas Härdin git at videolan.org
Tue Jul 10 21:35:47 CEST 2012


ffmpeg | branch: master | Tomas Härdin <tomas.hardin at codemill.se> | Tue Mar 20 11:03:48 2012 +0100| [83728d2d36721015fd000ed58216a73867281e69] | committer: Luca Barbato

mxfdec: only parse next partition pack if parsing forward

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

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

 libavformat/mxfdec.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 43e5135..796a97f 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++) {



More information about the ffmpeg-cvslog mailing list