[FFmpeg-devel] [PATCH RFC] avformat/hls: check IV size inside EXT-X-KEY
"zhilizhao(赵志立)"
quinkblack at foxmail.com
Wed Apr 13 15:32:37 EEST 2022
> On Apr 13, 2022, at 7:53 PM, Anton Khirnov <anton at khirnov.net> wrote:
>
> Quoting Zhao Zhili (2022-04-12 10:27:50)
>> IV should always be 128 bits. If the IV attribute was truncated
>> inside EXT-X-KEY, padding on the left which is the same as when
>> using sequence number as IV.
>> ---
>> I'm not sure which method is better: do padding or just return
>> AVERROR_INVALIDDATA?
>
> I would say return error, unless there are known buggy producers of
> incomplete IVs that we want to support.
Make sense. Actually it’s a story about shoot myself in the foot. I
created a buggy manifest, and the bug is hidden by the default
padding on the tail. So the vide only works with ffmpeg/ffplay. Let’s
hope I’m the only one make such mistake.
Will send a patch to return error in this case.
>
> --
> Anton Khirnov
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list