Commit 2ba0470e authored by Baptiste Coudurier's avatar Baptiste Coudurier

reindent

Originally committed as revision 16527 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 7d637efa
......@@ -343,10 +343,10 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
if (enc->codec_id == CODEC_ID_H264) {
/* check if extradata looks like mp4 formated */
if (enc->extradata_size > 0 && *(uint8_t*)enc->extradata != 1) {
if (ff_avc_parse_nal_units(pkt->data, &pkt->data, &pkt->size) < 0)
return -1;
assert(pkt->size);
size = pkt->size;
if (ff_avc_parse_nal_units(pkt->data, &pkt->data, &pkt->size) < 0)
return -1;
assert(pkt->size);
size = pkt->size;
}
/* cast needed to get negative value */
if (!flv->delay && pkt->dts < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment