Unified · Split
| @@ -93,10 +93,10 @@ static int init(struct sd *sd) · 92 unmodified lines | |||
| 93 | AVCodecContext *ctx = NULL; | 93 | AVCodecContext *ctx = NULL; |
| 94 | const AVCodec *sub_codec = avcodec_find_decoder(cid); | 94 | const AVCodec *sub_codec = avcodec_find_decoder(cid); |
| 95 | if (!sub_codec) | 95 | if (!sub_codec) |
| 96 | goto error; | 96 | goto error_probe; |
| 97 | ctx = avcodec_alloc_context3(sub_codec); | 97 | ctx = avcodec_alloc_context3(sub_codec); |
| 98 | if (!ctx) | 98 | if (!ctx) |
| 99 | goto error; | 99 | goto error_probe; |
| 100 | 100 | ||
| 101 | mp_set_avopts(sd->log, ctx, sd->opts->sub_avopts); | 101 | mp_set_avopts(sd->log, ctx, sd->opts->sub_avopts); |
| 102 | 102 | ||