Abort if a codec can not be opened.
This commit is contained in:
parent
47bd9809c0
commit
983755e99e
1 changed files with 2 additions and 0 deletions
|
@ -267,6 +267,8 @@ transport_start(th_transport_t *t, unsigned int weight, int force_start)
|
|||
st->st_ctx = avcodec_alloc_context();
|
||||
avcodec_open(st->st_ctx, c);
|
||||
st->st_parser = av_parser_init(id);
|
||||
} else {
|
||||
abort();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue