With this patch it's now possible to call avformat_index_get_entry and avformat_index_get_entry_from_timestamp with a const-qualified AVStream.