mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/hlsenc: reindent code
and remove redundant empty line
This commit is contained in:
parent
939c17fcb3
commit
3708a2a909
|
@ -2542,7 +2542,6 @@ static int hls_write_trailer(struct AVFormatContext *s)
|
|||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
|
||||
if ( hls->segment_type == SEGMENT_TYPE_FMP4) {
|
||||
int range_length = 0;
|
||||
if (!vs->init_range_length) {
|
||||
|
@ -2582,10 +2581,8 @@ static int hls_write_trailer(struct AVFormatContext *s)
|
|||
hlsenc_io_close(s, &vs->out, filename);
|
||||
av_free(filename);
|
||||
|
||||
|
||||
failed:
|
||||
av_write_trailer(oc);
|
||||
|
||||
if (oc->url[0]) {
|
||||
proto = avio_find_protocol_name(oc->url);
|
||||
use_temp_file = proto && !strcmp(proto, "file") && (hls->flags & HLS_TEMP_FILE);
|
||||
|
|
Loading…
Reference in New Issue