[FFmpeg-devel] [PATCH v5 4/4] avformat: add kvag muxer
Zane van Iperen
zane at zanevaniperen.com
Fri May 29 06:59:27 EEST 2020
On Fri, 29 May 2020 01:15:09 +0200
"Michael Niedermayer" <michael at niedermayer.cc> wrote:
> > +static int kvag_write_trailer(AVFormatContext *s)
> > +{
> > + int64_t file_size, data_size;
> > +
> > + if (!(s->pb->seekable & AVIO_SEEKABLE_NORMAL)) {
> > + av_log(s, AV_LOG_WARNING,
> > + "Stream not seekable, unable to write data size. "
> > + "Output file will be broken\n");
> > + return 0;
> > + }
>
> this could be checked earlier, checking it earlier would avoid
> transcoding the whole file just to fail
> or is such a broken file usefull in some usecase ?
No, there's no case in which a broken file is valid. I was just
following what wav_write_trailer() did in this case.
I'll put the check in kvag_write_init() and bail early.
Zane
More information about the ffmpeg-devel
mailing list