Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Graham <aaron@aarongraham.com>2014-05-13 02:54:55 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-05-13 02:54:55 +0400
commit72dcd48c19a655f8928af5b42b481527a15bf487 (patch)
tree8b04f4f06462cfaaf260d97916565b8234dca518 /libavformat/asfenc.c
parent81d1fcf37d4bdba58705f0541ebdab890d80ee4a (diff)
avformat/asfenc: honor the maximum of 63 payloads
Fixes Ticket3634 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/asfenc.c')
-rw-r--r--libavformat/asfenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index 02f2a299c9..cccbf858c7 100644
--- a/libavformat/asfenc.c
+++ b/libavformat/asfenc.c
@@ -34,6 +34,7 @@
#define ASF_INDEXED_INTERVAL 10000000
#define ASF_INDEX_BLOCK (1<<9)
+#define ASF_PAYLOADS_PER_PACKET 63
#define ASF_PACKET_ERROR_CORRECTION_DATA_SIZE 0x2
#define ASF_PACKET_ERROR_CORRECTION_FLAGS \
@@ -858,6 +859,8 @@ static void put_frame(AVFormatContext *s, ASFStream *stream, AVStream *avst,
flush_packet(s);
else if (asf->packet_size_left <= (PAYLOAD_HEADER_SIZE_MULTIPLE_PAYLOADS + PACKET_HEADER_MIN_SIZE + 1))
flush_packet(s);
+ else if (asf->packet_nb_payloads == ASF_PAYLOADS_PER_PACKET)
+ flush_packet(s);
}
stream->seq++;
}