mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue