minor update Decoder

Add the logic to return early when the decoder does not decoder a full picture.