History

daud: Don't write packets that are too large to have their size expressed in the bytestream.

Alex Converse committed 15 years ago

Commit 347b3751 parent cf39b461 file · +5 −0Browse files

Unified · Split

libavformat/daud.c+5−0
@@ -57,6 +57,11 @@ static int daud_write_header(struct AVFormatContext *s) · 56 unmodified lines
57 57
58static int daud_write_packet(struct AVFormatContext *s, AVPacket *pkt)58static int daud_write_packet(struct AVFormatContext *s, AVPacket *pkt)
59{59{
60 if (pkt->size > 65535) {
61 av_log(s, AV_LOG_ERROR,
62 "Packet size too large for s302m. (%d > 65535)\n", pkt->size);
63 return -1;
64 }
60 avio_wb16(s->pb, pkt->size);65 avio_wb16(s->pb, pkt->size);
61 avio_wb16(s->pb, 0x8010); // unknown66 avio_wb16(s->pb, 0x8010); // unknown
62 avio_write(s->pb, pkt->data, pkt->size);67 avio_write(s->pb, pkt->data, pkt->size);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t