[FFmpeg-devel] [PATCH v1] avcodec/av1_parser: ensure only one show frame packed data parsered

Michael Niedermayer michael at niedermayer.cc
Fri Dec 3 12:51:13 EET 2021


On Fri, Dec 03, 2021 at 04:09:20PM +0800, Fei Wang wrote:
> Split packed data when it contains multiple show frames in some
> non-standard bitstream. This can benefit downstream decoder which can
> decode continuously instead of interrupt with unexpected error.
> 
> Signed-off-by: Fei Wang <fei.w.wang at intel.com>
> ---
>  libavcodec/av1_parser.c | 19 +++++++++++++++----
>  1 file changed, 15 insertions(+), 4 deletions(-)

This results in a infinite loop

endlessly displaying
[av1 @ 0x55f62c2a6a00] Failed to parse temporal unit.
[av1 @ 0x55f62c2a6a00] Invalid OBU length: 1071323, but only 768 bytes remaining in fragment.
[av1 @ 0x55f62c2a6a00] Failed to parse temporal unit.
[av1 @ 0x55f62c2a6a00] Invalid OBU length: 1071323, but only 768 bytes remaining in fragment.
[av1 @ 0x55f62c2a6a00] Failed to parse temporal unit.
[av1 @ 0x55f62c2a6a00] Invalid OBU length: 1071323, but only 768 bytes remaining in fragment.
[av1 @ 0x55f62c2a6a00] Failed to parse temporal unit.
[av1 @ 0x55f62c2a6a00] Invalid OBU length: 1071323, but only 768 bytes remaining in fragment.
[av1 @ 0x55f62c2a6a00] Failed to parse temporal unit.
[av1 @ 0x55f62c2a6a00] Invalid OBU length: 1071323, but only 768 bytes remaining in fragment.
[av1 @ 0x55f62c2a6a00] Failed to parse temporal unit.
[av1 @ 0x55f62c2a6a00] Invalid OBU length: 1071323, but only 768 bytes remaining in fragment.
[av1 @ 0x55f62c2a6a00] Failed to parse temporal unit.
[av1 @ 0x55f62c2a6a00] Invalid OBU length: 1071323, but only 768 bytes remaining in fragment.
[av1 @ 0x55f62c2a6a00] Failed to parse temporal unit.

i will send you the testsample privatly

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

"Nothing to hide" only works if the folks in power share the values of
you and everyone you know entirely and always will -- Tom Scott

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20211203/55a54ca6/attachment.sig>


More information about the ffmpeg-devel mailing list