rtpenc_chain: Use the original AVFormatContext for getting payload type