riffenc: take an AVStream instead of an AVCodecContext