X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=inline;f=libavformat%2Fmpc8.c;h=5ee4e00a5dea37f60f14ffe09b98b14482b53453;hb=83d2b7e9a25e719b22c6631c31c3fdcfc137fa75;hp=73b7eb739c79012c72fca6e4a4e18d59d915106d;hpb=7e88dbe9358fd108dd565c994b6020b95d50c57a;p=ffmpeg diff --git a/libavformat/mpc8.c b/libavformat/mpc8.c index 73b7eb739c7..5ee4e00a5de 100644 --- a/libavformat/mpc8.c +++ b/libavformat/mpc8.c @@ -139,8 +139,8 @@ static void mpc8_parse_seektable(AVFormatContext *s, int64_t off) int i, t, seekd; GetBitContext gb; - if (s->nb_streams<=0) { - av_log(s, AV_LOG_ERROR, "cannot parse stream table before stream header\n"); + if (s->nb_streams == 0) { + av_log(s, AV_LOG_ERROR, "No stream added before parsing seek table\n"); return; } @@ -151,7 +151,7 @@ static void mpc8_parse_seektable(AVFormatContext *s, int64_t off) return; } if (size > INT_MAX/10 || size<=0) { - av_log(s, AV_LOG_ERROR, "Seek table size is invalid\n"); + av_log(s, AV_LOG_ERROR, "Bad seek table size\n"); return; } if(!(buf = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE)))