Skip to content
Snippets Groups Projects
Commit 4f6a6e1f authored by Baptiste Coudurier's avatar Baptiste Coudurier
Browse files

skip 0byte packets

Originally committed as revision 5231 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a8fcaf40
No related branches found
No related tags found
No related merge requests found
...@@ -97,6 +97,8 @@ static int adts_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -97,6 +97,8 @@ static int adts_write_packet(AVFormatContext *s, AVPacket *pkt)
ADTSContext *adts = s->priv_data; ADTSContext *adts = s->priv_data;
ByteIOContext *pb = &s->pb; ByteIOContext *pb = &s->pb;
if (!pkt->size)
return 0;
if(adts->write_adts) if(adts->write_adts)
adts_write_frame_header(s, pkt->size); adts_write_frame_header(s, pkt->size);
put_buffer(pb, pkt->data, pkt->size); put_buffer(pb, pkt->data, pkt->size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment