[FFmpeg-devel] Segfault calling av_interleaved_write_frame

Jonathan Noble jonnobleuk at gmail.com
Mon Jan 20 00:50:02 EET 2020


On Sun, 19 Jan 2020 at 11:52, Nicolas George <george at nsup.org> wrote:

> Jonathan Noble (12020-01-19):
> > I'm writing a wrapper around libav.
> > https://github.com/jonno85uk/mediahandling/tree/Issue4_encoding
> > I know what was causing this condition,  avformat_write_header() hadn't
> > been called at that time.
>
> Calling avformat_write_header() is not optional, writing frames before
> it is not supported.

I'd gathered that, but rather than bombing out shouldn't there be a AVERROR
returned or something else to notify the user of their error, like so many
other non-optional checks in ffmpeg?

>
> For questions about the proper usage of the API, see this mailing-list:
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> Regards,
>
> --
>   Nicolas George
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list