[FFmpeg-cvslog] avformat/asfenc: honor the maximum of 63 payloads
Aaron Graham
git at videolan.org
Tue May 13 01:06:21 CEST 2014
ffmpeg | branch: master | Aaron Graham <aaron at aarongraham.com> | Tue May 13 00:54:55 2014 +0200| [72dcd48c19a655f8928af5b42b481527a15bf487] | committer: Michael Niedermayer
avformat/asfenc: honor the maximum of 63 payloads
Fixes Ticket3634
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=72dcd48c19a655f8928af5b42b481527a15bf487
---
libavformat/asfenc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c
index 02f2a29..cccbf85 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++;
}
More information about the ffmpeg-cvslog
mailing list