[FFmpeg-devel] [PATCH 02/12] hdsenc: Add missing goto statement

Steven Liu lingjiujianke at gmail.com
Fri Jul 7 01:38:23 EEST 2017


2017-07-07 2:28 GMT+08:00 Derek Buitenhuis <derek.buitenhuis at gmail.com>:
> Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> ---
>  libavformat/hdsenc.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/hdsenc.c b/libavformat/hdsenc.c
> index 347df83a51..c362a75d8b 100644
> --- a/libavformat/hdsenc.c
> +++ b/libavformat/hdsenc.c
> @@ -421,6 +421,7 @@ static int hds_write_header(AVFormatContext *s)
>              av_log(s, AV_LOG_WARNING,
>                     "No video stream in output stream %d and no min frag duration set\n", i);
>              ret = AVERROR(EINVAL);
> +            goto fail;
Maybe there have no video stream, but have audio stream, so just give
user a warning and continue?
>          }
>          os->fragment_index = 1;
>          write_abst(s, os, 0);
> --
> 2.11.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


More information about the ffmpeg-devel mailing list