enable vp9 by default
This commit is contained in:
parent
44d68e19d7
commit
3ac81e2860
2 changed files with 5 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -6,7 +6,7 @@ BINDIR ?= ${DESTDIR}${PREFIX}/bin
|
||||||
MAN1DIR ?= ${DESTDIR}${PREFIX}/man/man1
|
MAN1DIR ?= ${DESTDIR}${PREFIX}/man/man1
|
||||||
|
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
CFLAGS ?= -Wall -Wno-parantheses -O3
|
CFLAGS ?= -Wall -Wno-parantheses -O3 -DHAVE_VP9=1
|
||||||
FLAGS += -ffast-math -fsigned-char -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops
|
FLAGS += -ffast-math -fsigned-char -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops
|
||||||
FLAGS = ${CFLAGS}
|
FLAGS = ${CFLAGS}
|
||||||
FLAGS += -I. -Isrc -Isrc/halloc
|
FLAGS += -I. -Isrc -Isrc/halloc
|
||||||
|
|
|
@ -381,12 +381,14 @@ int extract_frame_webm(oxstate *state) {
|
||||||
if (type == NESTEGG_TRACK_VIDEO) {
|
if (type == NESTEGG_TRACK_VIDEO) {
|
||||||
/* Initialize codec */
|
/* Initialize codec */
|
||||||
if (codec_id == NESTEGG_CODEC_VP8) {
|
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");
|
die_codec(&codec, "Failed to initialize decoder");
|
||||||
|
}
|
||||||
#ifdef HAVE_VP9
|
#ifdef HAVE_VP9
|
||||||
} else if (codec_id == NESTEGG_CODEC_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");
|
die_codec(&codec, "Failed to initialize decoder");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "unsupported video codec %d\n", codec_id);
|
fprintf(stderr, "unsupported video codec %d\n", codec_id);
|
||||||
|
|
Loading…
Reference in a new issue