1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avformat/avienc: Correct possible dereference of null

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Roman Savchenko
2015-05-28 18:25:56 +03:00
committed by Michael Niedermayer
parent e2f3ea1cbb
commit e85d91da48

View File

@@ -386,6 +386,8 @@ static int avi_write_header(AVFormatContext *s)
t = NULL;
if (langstr) {
char* str = av_asprintf("Subtitle - %s-xx;02", langstr);
if (!str)
return AVERROR(ENOMEM);
ff_riff_write_info_tag(s->pb, "strn", str);
av_free(str);
}