Commit e85d91da authored by Roman Savchenko's avatar Roman Savchenko Committed by Michael Niedermayer

avformat/avienc: Correct possible dereference of null

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e2f3ea1c
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment