You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavf: add a forgotten NULL check in convert_format_parameters().
This commit is contained in:
@@ -395,6 +395,9 @@ static AVDictionary *convert_format_parameters(AVFormatParameters *ap)
|
|||||||
char buf[1024];
|
char buf[1024];
|
||||||
AVDictionary *opts = NULL;
|
AVDictionary *opts = NULL;
|
||||||
|
|
||||||
|
if (!ap)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
if (ap->time_base.num) {
|
if (ap->time_base.num) {
|
||||||
snprintf(buf, sizeof(buf), "%d/%d", ap->time_base.den, ap->time_base.num);
|
snprintf(buf, sizeof(buf), "%d/%d", ap->time_base.den, ap->time_base.num);
|
||||||
av_dict_set(&opts, "framerate", buf, 0);
|
av_dict_set(&opts, "framerate", buf, 0);
|
||||||
|
Reference in New Issue
Block a user