aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-25 20:33:40 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-28 11:18:53 +0200
commit6c70f89813a67238288705d07c928b4eac7a8cae (patch)
tree6105521cffa8d3a1c904779fba2ed4581efcb310 /libavformat/hlsenc.c
parent4fbcb69707409ecb7a9d314f254e67d1a6e732dc (diff)
downloadffmpeg-6c70f89813a67238288705d07c928b4eac7a8cae.tar.gz
avformat/hlsenc, hlsplaylist: Cosmetics
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 02bd5c3528..18256cbf91 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2137,9 +2137,8 @@ static int update_variant_stream_info(AVFormatContext *s)
return AVERROR(ENOMEM);
//by default, the first available ccgroup is mapped to the variant stream
- if (hls->nb_ccstreams) {
+ if (hls->nb_ccstreams)
hls->var_streams[0].ccgroup = hls->cc_streams[0].ccgroup;
- }
for (i = 0; i < s->nb_streams; i++)
hls->var_streams[0].streams[i] = s->streams[i];
@@ -2320,7 +2319,7 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
vs->start_pts_from_audio = 0;
}
- if (vs->has_video) {
+ if (vs->has_video) {
can_split = st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO &&
((pkt->flags & AV_PKT_FLAG_KEY) || (hls->flags & HLS_SPLIT_BY_TIME));
is_ref_pkt = (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) && (pkt->stream_index == vs->reference_stream_index);