On 20/12/11 17:44, Janne Grunau wrote:
From: Tomas Härdin<[email protected]>

This fixes SIGSEGV on sliceless (single stream) VBR files
---
  libavformat/mxfdec.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 3c9115d..1c5016b 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -1738,6 +1738,7 @@ static int mxf_read_close(AVFormatContext *s)
              break;
          case IndexTableSegment:
              seg = (MXFIndexTableSegment *)mxf->metadata_sets[i];
+            if (seg->slice_count)

Indent please ^^;

              for (j = 0; j<  seg->nb_index_entries; j++)
                  av_freep(&seg->slice_offset_entries[j]);
              av_freep(&seg->slice);


--

Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to