enable vp9 by default
This commit is contained in:
parent
44d68e19d7
commit
3ac81e2860
2 changed files with 5 additions and 3 deletions
|
|
@ -381,12 +381,14 @@ int extract_frame_webm(oxstate *state) {
|
|||
if (type == NESTEGG_TRACK_VIDEO) {
|
||||
/* Initialize codec */
|
||||
if (codec_id == NESTEGG_CODEC_VP8) {
|
||||
if(vpx_codec_dec_init(&codec, &vpx_codec_vp8_dx_algo, NULL, flags))
|
||||
if(vpx_codec_dec_init(&codec, &vpx_codec_vp8_dx_algo, NULL, flags)) {
|
||||
die_codec(&codec, "Failed to initialize decoder");
|
||||
}
|
||||
#ifdef HAVE_VP9
|
||||
} else if (codec_id == NESTEGG_CODEC_VP9) {
|
||||
if(vpx_codec_dec_init(&codec, &vpx_codec_vp9_dx_algo, NULL, flags))
|
||||
if(vpx_codec_dec_init(&codec, &vpx_codec_vp9_dx_algo, NULL, flags)) {
|
||||
die_codec(&codec, "Failed to initialize decoder");
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
fprintf(stderr, "unsupported video codec %d\n", codec_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue