* qatar/master: avconv: Make sure the encoder exists before inspecting supported_list
Unified · Split
| @@ -141,7 +141,7 @@ static char *choose_ ## var ## s(OutputStream *ost) \ · 140 unmodified lines | ||
| 141 | 141 | if (ost->st->codec->var != none) { \ |
| 142 | 142 | get_name(ost->st->codec->var); \ |
| 143 | 143 | return av_strdup(name); \ |
| 144 | − } else if (ost->enc->supported_list) { \ | |
| 144 | + } else if (ost->enc && ost->enc->supported_list) { \ | |
| 145 | 145 | const type *p; \ |
| 146 | 146 | AVIOContext *s = NULL; \ |
| 147 | 147 | uint8_t *ret; \ |