avienc: fix overflow of audio sample count
authorTobias Rapp <t.rapp@noa-audio.com>
Thu, 11 Apr 2013 14:57:24 +0000 (16:57 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Apr 2013 16:33:24 +0000 (18:33 +0200)
Fixes an overflow of the sample count field within the audio stream header
chunk if audio stream data exceeds 2GB.

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

index 15f0794..878fce4 100644 (file)
@@ -57,7 +57,7 @@ typedef struct {
 
 typedef struct  {
     int64_t frames_hdr_strm;
-    int audio_strm_length;
+    int64_t audio_strm_length;
     int packet_count;
     int entry;