Re: [FFmpeg-devel] [PATCH 3/7] avformat/segafilmenc: Check early whether video is allowed

2020-01-14 Thread Michael Niedermayer
On Tue, Jan 14, 2020 at 04:13:32AM +0100, Andreas Rheinhardt wrote: > The current code only checks when writing the trailer whether the video > format and Codec ID are actually compatible with the container. At this > point, a lot of data will already have been written (in vain, of > course), so

[FFmpeg-devel] [PATCH 3/7] avformat/segafilmenc: Check early whether video is allowed

2020-01-13 Thread Andreas Rheinhardt
The current code only checks when writing the trailer whether the video format and Codec ID are actually compatible with the container. At this point, a lot of data will already have been written (in vain, of course), so check during the init function instead. Signed-off-by: Andreas Rheinhardt