• Philip Langdale's avatar
    avcodec/cuvid: Restore initialization of pixel format in init() · dd10e725
    Philip Langdale authored
    I moved this into the handle_video_sequence callback because that's
    the earliest time you can make an accurate decision as to what the
    format should be.
    
    However, transcoding requires that the decision between using
    the accelerated PIX_FMT_CUDA vs a normal pix format happen at init()
    time. There is enough information available to make that decision
    and things work out with the underlying format only being discovered
    in the sequence callback.
    dd10e725
cuvid.c 31.7 KB