correctly pass along the exact same status returned from ParsePartitions

Change-Id: I5e4ff98dd548b6dceaf36675faa988efb1f47b77
This commit is contained in:
Pascal Massimino 2011-03-23 17:22:07 -07:00
parent 4704146a1f
commit 2654c3dadc

View File

@ -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