On 6/13/11 4:23 AM, Anton Khirnov wrote:
From: Michael Niedermayer<[email protected]>

Signed-off-by: Michael Niedermayer<[email protected]>
Signed-off-by: Anton Khirnov<[email protected]>
---
  libavformat/flvdec.c |   49 ++++++++++++++++++++++---------------------------
  1 files changed, 22 insertions(+), 27 deletions(-)

+        if(arraylen>>28)

...

              break;

+        if       (!strcmp(KEYFRAMES_TIMESTAMP_TAG , str_val)&&  !times){
+            current_array=&times;
+            timeslen= arraylen;
+        }else if (!strcmp(KEYFRAMES_BYTEOFFSET_TAG, str_val)&&  
!filepositions){
+            current_array=&filepositions;
+            fileposlen= arraylen;
+        }else // unexpected metatag inside keyframes, will not use such 
metadata for indexing
+            break;
+
+        if (!(*current_array = av_mallocz(sizeof(**current_array) * 
arraylen))) {
+            ret = AVERROR(ENOMEM);
+            goto finish;
+        }
+

Assuming it works maybe it must be properly formatted before hitting our tree.

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

Reply via email to