0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

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.
This commit is contained in:
John Bradley 2015-03-27 20:30:37 -05:00
parent f128283655
commit 4c570826c2

View File

@ -361,6 +361,13 @@ static void close_video(struct ffmpeg_data *data)
{ {
avcodec_close(data->video->codec); avcodec_close(data->video->codec);
avpicture_free(&data->dst_picture); 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); av_frame_free(&data->vframe);
} }