You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/hlsenc: reindent code
and remove redundant empty line
This commit is contained in:
@@ -2542,7 +2542,6 @@ static int hls_write_trailer(struct AVFormatContext *s)
|
|||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ( hls->segment_type == SEGMENT_TYPE_FMP4) {
|
if ( hls->segment_type == SEGMENT_TYPE_FMP4) {
|
||||||
int range_length = 0;
|
int range_length = 0;
|
||||||
if (!vs->init_range_length) {
|
if (!vs->init_range_length) {
|
||||||
@@ -2582,10 +2581,8 @@ static int hls_write_trailer(struct AVFormatContext *s)
|
|||||||
hlsenc_io_close(s, &vs->out, filename);
|
hlsenc_io_close(s, &vs->out, filename);
|
||||||
av_free(filename);
|
av_free(filename);
|
||||||
|
|
||||||
|
|
||||||
failed:
|
failed:
|
||||||
av_write_trailer(oc);
|
av_write_trailer(oc);
|
||||||
|
|
||||||
if (oc->url[0]) {
|
if (oc->url[0]) {
|
||||||
proto = avio_find_protocol_name(oc->url);
|
proto = avio_find_protocol_name(oc->url);
|
||||||
use_temp_file = proto && !strcmp(proto, "file") && (hls->flags & HLS_TEMP_FILE);
|
use_temp_file = proto && !strcmp(proto, "file") && (hls->flags & HLS_TEMP_FILE);
|
||||||
|
Reference in New Issue
Block a user