From 2654c3dadca30670a6f43d694879202b11d2fbd2 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Wed, 23 Mar 2011 17:22:07 -0700 Subject: [PATCH] correctly pass along the exact same status returned from ParsePartitions Change-Id: I5e4ff98dd548b6dceaf36675faa988efb1f47b77 --- src/dec/vp8.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/dec/vp8.c b/src/dec/vp8.c index a47007fa..07541f31 100644 --- a/src/dec/vp8.c +++ b/src/dec/vp8.c @@ -199,6 +199,7 @@ int VP8GetHeaders(VP8Decoder* const dec, VP8Io* const io) { VP8FrameHeader* frm_hdr; VP8PictureHeader* pic_hdr; VP8BitReader* br; + VP8StatusCode status; if (dec == NULL) { return 0; @@ -316,9 +317,9 @@ int VP8GetHeaders(VP8Decoder* const dec, VP8Io* const io) { return VP8SetError(dec, VP8_STATUS_BITSTREAM_ERROR, "cannot parse filter header"); } - if (ParsePartitions(dec, buf, buf_size) != VP8_STATUS_OK) { - return VP8SetError(dec, VP8_STATUS_BITSTREAM_ERROR, - "cannot parse partitions"); + status = ParsePartitions(dec, buf, buf_size); + if (status != VP8_STATUS_OK) { + return VP8SetError(dec, status, "cannot parse partitions"); } // quantizer change