I tested these patches with the AMF AV1 encoder(by adding AV_PKT_DATA_FRAME_CROPPING) It works fine.
I suggest a small change to the code for better safety. Change this part: >>if (sd->data && sd->size == sizeof(uint32_t) * 4) { to: if (sd && sd->data && sd->size == sizeof(uint32_t) * 4) { This change helps avoid crashes when the cropping data isn't filled in. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".