I updated to the latest code from git and am getting a system access
violation exception when calling avio_close if i set the format context
pb->seekable=1
repro code here:
var outputFormat = av_guess_format("mp4", @"D:\test.mp4", null);
var formatContext = avformat_alloc_context();
formatContext->oformat = outputFormat;
var videoStream = avformat_new_stream(formatContext, null);
var videoCodec =
avcodec_find_encoder(AVCodecID.AV_CODEC_ID_H264);
var videoCodecContext = avcodec_alloc_context3(videoCodec);
avcodec_open2(videoCodecContext, videoCodec, null);
avio_open(&formatContext->pb, @"D:\test.mp4", AVIO_FLAG_WRITE);
formatContext->pb->seekable = 1; //<-- comment out to fix
avformat_write_header(formatContext, null);
avio_close(formatContext->pb);//<-- crashes
_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".