On Sun, Nov 08, 2015 at 12:34:21PM +0100, Paul B Mahol wrote:
> Signed-off-by: Paul B Mahol <one...@gmail.com>
> ---
>  libavformat/wavdec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
> index 621d21f..144e1b7 100644
> --- a/libavformat/wavdec.c
> +++ b/libavformat/wavdec.c
> @@ -379,7 +379,7 @@ static int wav_read_header(AVFormatContext *s)
>              got_xma2 = 1;
>              break;
>          case MKTAG('d', 'a', 't', 'a'):
> -            if (!got_fmt && !got_xma2) {
> +            if (!pb->seekable && !got_fmt && !got_xma2) {
>                  av_log(s, AV_LOG_ERROR,
>                         "found no 'fmt ' tag before the 'data' tag\n");
>                  return AVERROR_INVALIDDATA;

if fmt/xma2 existence isnt checked at data time then i think it should
be checked at the end of the loop unless iam missing somethig

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle

Attachment: signature.asc
Description: Digital signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to