avformat/hlsenc: reindent code

and remove redundant empty line
This commit is contained in:
Steven Liu 2019-08-20 09:56:38 +08:00
parent 939c17fcb3
commit 3708a2a909
1 changed files with 32 additions and 35 deletions

View File

@ -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);