mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
skip 0byte packets
Originally committed as revision 5231 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a8fcaf4019
commit
4f6a6e1f81
@ -97,6 +97,8 @@ static int adts_write_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
ADTSContext *adts = s->priv_data;
|
||||
ByteIOContext *pb = &s->pb;
|
||||
|
||||
if (!pkt->size)
|
||||
return 0;
|
||||
if(adts->write_adts)
|
||||
adts_write_frame_header(s, pkt->size);
|
||||
put_buffer(pb, pkt->data, pkt->size);
|
||||
|
Loading…
Reference in New Issue
Block a user