Remove some FFmpeg-related warnings by using AVStream::codecpar.