[FFmpeg-devel] [PATCH 7/7] fftools/ffplay: support applying container level cropping

Dmitrii Ovchinnikov ovchinnikov.dmitrii at gmail.com
Wed Jan 17 20:39:02 EET 2024


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.


More information about the ffmpeg-devel mailing list