[FFmpeg-devel] [PATCH] BugFix #9283: correct setting of key_frame flag in AVFrame using cuviddec on interlaced h264

Timo Rothenpieler timo at rothenpieler.org
Fri Jun 11 17:46:26 EEST 2021


On 11.06.2021 12:27, stuhlo wrote:
> From: stuhlo <stuhlo at gmail.com>
> 
> This fixes setting of `key_frame` flag in AVFrame when input h264 packets represents individual fields of interlaced video.
> In this case, pairs of two consecutive fields represents a single decoded picture and have identical `CurrPicIdx`, however, only
> the first field is entirely intra-coded and has the flag `intra_pic_flag` set and the second field was resetting the flag before
> it was even read in the function `cuvid_output_frame`.


Looks good to me, but please use proper commit messages in the future.
You can look at other commit messages for the general format.

Will test and apply with fixed message.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4494 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210611/2cdb0c48/attachment.bin>


More information about the ffmpeg-devel mailing list