Frame decoding