2017-12-06 9:25 GMT+01:00 tiejun.peng <tiejun.p...@foxmail.com>: > /* check MOV header */ > do { > - if (mov->moov_retry) > - avio_seek(pb, 0, SEEK_SET); > - if ((err = mov_read_default(mov, pb, atom)) < 0) { > - av_log(s, AV_LOG_ERROR, "error reading header\n"); > - mov_read_close(s); > - return err; > - } > + if (mov->moov_retry) > + avio_seek(pb, 0, SEEK_SET); > + /* 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; > + }
Most of this change should be a separate (purely cosmetic) patch to make reviewing the change (now and later) easier. Feel free to only send your functional change (without the re-indentation) now, the indentation can still be fixed. Carl Eugen _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel