Message ID | 1512751683-8034-1-git-send-email-tiejun.peng@foxmail.com |
---|---|
State | New |
Headers | show |
diff --git a/libavformat/mov.c b/libavformat/mov.c index 180b6f4..870fdd6 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -6632,7 +6632,9 @@ static int mov_read_header(AVFormatContext *s) do { if (mov->moov_retry) avio_seek(pb, 0, SEEK_SET); - if ((err = mov_read_default(mov, pb, atom)) < 0) { + /* EOF don't mean the file to play fail*/ + err = mov_read_default(mov, pb, atom); + if (err < 0 && err != AVERROR_EOF) { av_log(s, AV_LOG_ERROR, "error reading header\n"); mov_read_close(s); return err;
fix eof lead to play fail. Signed-off-by: tiejun.peng <tiejun.peng@foxmail.com> --- libavformat/mov.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)