It seems that the field AVFrame::reference may change between the 2 calls.
Attach a file by drag & drop or click to upload