avformat/ffmdec: replace most codec uses by codecpar