mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-02 22:17:01 +08:00
reindent
Originally committed as revision 16527 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -343,10 +343,10 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
if (enc->codec_id == CODEC_ID_H264) {
|
if (enc->codec_id == CODEC_ID_H264) {
|
||||||
/* check if extradata looks like mp4 formated */
|
/* check if extradata looks like mp4 formated */
|
||||||
if (enc->extradata_size > 0 && *(uint8_t*)enc->extradata != 1) {
|
if (enc->extradata_size > 0 && *(uint8_t*)enc->extradata != 1) {
|
||||||
if (ff_avc_parse_nal_units(pkt->data, &pkt->data, &pkt->size) < 0)
|
if (ff_avc_parse_nal_units(pkt->data, &pkt->data, &pkt->size) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
assert(pkt->size);
|
assert(pkt->size);
|
||||||
size = pkt->size;
|
size = pkt->size;
|
||||||
}
|
}
|
||||||
/* cast needed to get negative value */
|
/* cast needed to get negative value */
|
||||||
if (!flv->delay && pkt->dts < 0)
|
if (!flv->delay && pkt->dts < 0)
|
||||||
|
Reference in New Issue
Block a user