You've already forked FFmpeg
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:
committed by
Michael Niedermayer
parent
e2f3ea1cbb
commit
e85d91da48
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user