mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 01:40:28 +00:00
File: really respect :opportunistic_audio
Before this fix, using :opportunistic_audio while there was no audio track in the media file resulted in crash.
This commit is contained in:
@@ -455,7 +455,8 @@ static int vidcap_file_init(struct vidcap_params *params, void **state) {
|
||||
log_msg(LOG_LEVEL_ERROR, MOD_NAME "Could not find audio stream!\n");
|
||||
vidcap_file_common_cleanup(s);
|
||||
return VIDCAP_INIT_FAIL;
|
||||
} else {
|
||||
}
|
||||
if (s->audio_stream_idx >= 0) {
|
||||
s->aud_ctx = vidcap_file_open_dec_ctx(dec,
|
||||
s->fmt_ctx->streams[s->audio_stream_idx]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user