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