[FFmpeg-devel] [PATCH] avformat/hlsenc: compiler warning fix

Bodecs Bela bodecsb at vivanet.hu
Mon Jan 20 10:41:21 EET 2020


2020.01.20. 8:46 keltezéssel, Andreas Rheinhardt írta:
> On Mon, Jan 20, 2020 at 8:35 AM Bodecs Bela <bodecsb at vivanet.hu> wrote:
>
>> Dear All,
>>
>> This patch corrects compiler warning about returning possibly uninitialized
>> variable in hls_write_header function.
>>
>> Which compiler warns about this?

libavformat/hlsenc.c: In function ‘hls_write_header’:
libavformat/hlsenc.c:2174: warning: ‘ret’ may be used uninitialized in 
this function


gcc version 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC)


> Regarding the patch: It's probably better to explicitly return 0 at the end
> of hls_write_header() (as well as dash_write_header()).

I have no objection, but maybe in a separate patch?


>
> - Andreas
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list