mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 03:28:27 +00:00
avformat/avienc: Correct possible dereference of null
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e2f3ea1cbb
commit
e85d91da48
@ -386,6 +386,8 @@ static int avi_write_header(AVFormatContext *s)
|
|||||||
t = NULL;
|
t = NULL;
|
||||||
if (langstr) {
|
if (langstr) {
|
||||||
char* str = av_asprintf("Subtitle - %s-xx;02", langstr);
|
char* str = av_asprintf("Subtitle - %s-xx;02", langstr);
|
||||||
|
if (!str)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
ff_riff_write_info_tag(s->pb, "strn", str);
|
ff_riff_write_info_tag(s->pb, "strn", str);
|
||||||
av_free(str);
|
av_free(str);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user