mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avconv: Make sure the encoder exists before inspecting supported_list
This fixes crashes when there is no encoder for the default codec of selected format. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
5da5128493
commit
e760e1d408
@ -41,7 +41,7 @@ static char *choose_ ## var ## s(OutputStream *ost) \
|
||||
if (ost->st->codec->var != none) { \
|
||||
get_name(ost->st->codec->var); \
|
||||
return av_strdup(name); \
|
||||
} else if (ost->enc->supported_list) { \
|
||||
} else if (ost->enc && ost->enc->supported_list) { \
|
||||
const type *p; \
|
||||
AVIOContext *s = NULL; \
|
||||
uint8_t *ret; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user