Decoding avro events with infile schema

I have to process events from an avro file, where the schema is included in the avro file itself.
So i can't point the avro codec to a schema_uri.

Is there a way to accomplish this?