lavf/hlsenc: Do not mix declarations and code.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Fri, 16 Nov 2018 21:03:37 +0000 (22:03 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Fri, 16 Nov 2018 21:03:37 +0000 (22:03 +0100)
commitfc94e9704e056a2dc85745ffec685ffb6fcd142e
tree16c1670ebdce025ff3941d4701fa32e07f842c7a
parent21dd05ee6ad3fccfd57a7171a8d8d882d9abf940
lavf/hlsenc: Do not mix declarations and code.

Fixes the following warnings:
libavformat/hlsenc.c: In function 'hls_write_trailer':
libavformat/hlsenc.c:2364:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
                 uint8_t *buffer = NULL;
                 ^~~~~~~
libavformat/hlsenc.c:2372:17: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
                 int byterange_mode = (hls->flags & HLS_SINGLE_FILE) || (hls->max_seg_size > 0);
                 ^~~
libavformat/hlsenc.c:2379:13: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
             int range_length = 0;
             ^~~
libavformat/hlsenc.c