diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-04-10 03:31:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-04-10 03:32:29 +0200 |
commit | a2beabc231f0d0c509e5c8f09fdab0ccb46eca10 (patch) | |
tree | 43ef01d083ea7e047cfa02ea1e4d15d5ae074ab3 /libavformat/daud.c | |
parent | d459d8e28df12ee69c71c7181380d91e09764374 (diff) | |
parent | 347b375a80afbb27c887a243097c09370cb95d19 (diff) | |
download | ffmpeg-a2beabc231f0d0c509e5c8f09fdab0ccb46eca10.tar.gz |
Merge remote branch 'qatar/master'
* qatar/master:
daud: Don't write packets that are too large to have their size expressed in the bytestream.
DUPLICATE pthread: validate_thread_parameters() ignored slice-threading being intentionally off
DUPLICATE Use consistent condition for whether to run slice-threading execute function.
avformat.h: fix a misplaced #endif
DUPLCIATE vaapi: cope with VA-API 0.32, i.e. fix VC-1 decoding on Sandy Bridge.
DUPLICATE vaapi: filter out DELAYED_PIC_REF flag to determine field.
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/daud.c')
-rw-r--r-- | libavformat/daud.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/daud.c b/libavformat/daud.c index 7aa1b6dad2..6a36d28acb 100644 --- a/libavformat/daud.c +++ b/libavformat/daud.c @@ -57,6 +57,11 @@ static int daud_write_header(struct AVFormatContext *s) static int daud_write_packet(struct AVFormatContext *s, AVPacket *pkt) { + if (pkt->size > 65535) { + av_log(s, AV_LOG_ERROR, + "Packet size too large for s302m. (%d > 65535)\n", pkt->size); + return -1; + } avio_wb16(s->pb, pkt->size); avio_wb16(s->pb, 0x8010); // unknown avio_write(s->pb, pkt->data, pkt->size); |