提交 4c570826 编写于 作者: J John Bradley

obs-ffmpeg: Workaround for a64 encoder bug

the Commodore A64 codecs seem to deref the video frame
too many times causing a crash.  For now just skip if this
codec.
上级 f1282836
......@@ -361,6 +361,13 @@ static void close_video(struct ffmpeg_data *data)
{
avcodec_close(data->video->codec);
avpicture_free(&data->dst_picture);
// This format for some reason derefs video frame
// too many times
if (data->vcodec->id == AV_CODEC_ID_A64_MULTI ||
data->vcodec->id == AV_CODEC_ID_A64_MULTI5)
return;
av_frame_free(&data->vframe);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册