aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2018-08-20 14:36:20 +0800
committerJun Zhao <jun.zhao@intel.com>2018-08-22 19:05:08 +0800
commitc4608d225faf0c14b5decdfb73f14bc58ddcb380 (patch)
tree2a26d3ebfa4c93c9ffa0038ff62ec53be5096c05 /libavformat/hlsenc.c
parent9e64ee3936b1a49842add8dbd5e5d016f4f32103 (diff)
downloadffmpeg-c4608d225faf0c14b5decdfb73f14bc58ddcb380.tar.gz
lavf/hlsenc: fix mixed declarations and code warning.
fix the build warning for "ISO C90 forbids mixed declarations and code" Reviewed-by: Steven Liu <lq@chinaffmpeg.org> Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 43e6fc86c6..c261016fbf 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2152,6 +2152,7 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
uint8_t *buffer = NULL;
VariantStream *vs = NULL;
AVDictionary *options = NULL;
+ char *old_filename = NULL;
for (i = 0; i < hls->nb_varstreams; i++) {
vs = &hls->var_streams[i];
@@ -2218,7 +2219,6 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
}
- char *old_filename = NULL;
if (vs->packets_written && can_split && av_compare_ts(pkt->pts - vs->start_pts, st->time_base,
end_pts, AV_TIME_BASE_Q) >= 0) {
int64_t new_start_pos;