AVHWAccel.decode_params

Callback for parameter data (SPS/PPS/VPS etc).

Useful for hardware decoders which keep persistent state about the video parameters, and need to receive any changes to update that state.

@param avctx the codec context @param type the nal unit type @param buf the nal unit data buffer @param buf_size the size of the nal unit in bytes @return zero if successful, a negative value otherwise

struct AVHWAccel
int function(AVCodecContext* avctx, int type, const(ubyte)* buf, uint buf_size) decode_params;

Meta