Fix VP8 broken with avpf

This commit is contained in:
Guillaume BIENKOWSKI 2014-11-20 16:28:35 +01:00
parent 6fa436a10f
commit 998b21b276
2 changed files with 20 additions and 1 deletions

View file

@ -51,7 +51,7 @@ $(BUILDER_SRC_DIR)/$(libvpx_dir)/patched.stamp:
&& touch $@
$(BUILDER_BUILD_DIR)/$(libvpx_dir)/config.mk:
$(BUILDER_BUILD_DIR)/$(libvpx_dir)/config.mk: $(BUILDER_SRC_DIR)/$(libvpx_dir)/patched.stamp
mkdir -p $(BUILDER_BUILD_DIR)/$(libvpx_dir)
cd $(BUILDER_BUILD_DIR)/$(libvpx_dir)/ \
&& host_alias=${host} . $(BUILDER_SRC_DIR)/build/$(config_site) \

View file

@ -0,0 +1,19 @@
diff --git a/vp8/vp8_dx_iface.c b/vp8/vp8_dx_iface.c
index 5aa274d..9eee377 100644
--- a/vp8/vp8_dx_iface.c
+++ b/vp8/vp8_dx_iface.c
@@ -327,14 +327,6 @@ static vpx_codec_err_t vp8_decode(vpx_codec_alg_priv_t *ctx,
unsigned int resolution_change = 0;
unsigned int w, h;
- if (data == NULL && data_sz == 0) {
- ctx->flushed = 1;
- return VPX_CODEC_OK;
- }
-
- /* Reset flushed when receiving a valid frame */
- ctx->flushed = 0;
-
/* Update the input fragment data */
if(update_fragments(ctx, data, data_sz, &res) <= 0)
return res;