c
28 	jpc_stream_t *tmp_stream = jpc_streamlist_remove(dec->pkthdrstreams, 0);
29 	if (tmp_stream == NULL) {
30 		jas_set_error(jas_get_error(), "Failed to remove packet header stream");
31 		return -1;
32 	}
33 	tile->pkthdrstream = tmp_stream;
