Skip to content
  • Carl Eugen Hoyos's avatar
    lavf/hlsenc: Do not mix declarations and code. · 4521700f
    Carl Eugen Hoyos authored
    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;
                 ^~~
    
    (cherry picked from commit fc94e970
    
    )
    Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
    4521700f