• Yeoh, Hoong Tee's avatar
    lavf/rtpenc_jpeg: Retrieve sampling factor from SOF0 · da4b2549
    Yeoh, Hoong Tee authored
    In ff_rtp_send_jpeg, the type is defined based on PIX_FMT and
    color-range parsed in. There is limitation on current design
    where need to include support newly introduced PIX_FMT such as
    AV_PIX_FMT_QSV and there might be more and more in future. Hence,
    retrive the sampling factor from SOF0 in JPEG compressed header
    directly. This introduces flexibility to handle different type of
    new codec introduced in future.
    Signed-off-by: 's avatarYeoh, Hoong Tee <hoong.tee.yeoh@intel.com>
    da4b2549
rtpenc_jpeg.c 8.1 KB