libdav1d decoder doesn't initialize reordered_opaque
|Reported by:||Lastique||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
libdav1d decoder does not initialize AVFrame::reordered_opaque member of the decoded frame, leaving it zero (i.e. leaving the value that was there when avcodec_receive_frame was called). Normally, as documented for AVCodecContext::reordered_opaque, that member should be initialized with the value from AVCodecContext::reordered_opaque after reordering. Since, AFAIK, AV1 doesn't reorder frames, libdav1d_receive_frame should simply copy AVCodecContext::reordered_opaque to AVFrame::reordered_opaque.
This was found when using ffmpeg (libavcodec) through its C API. I don't think it can be demonstrated via ffmpeg command line.