Abort if a codec can not be opened.

This commit is contained in:
Andreas Öman 2009-03-29 19:45:44 +00:00
parent 47bd9809c0
commit 983755e99e

View file

@ -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();
}
}
}