[FFmpeg-devel] [PATCH v1] avcodec/av1_parser: ensure only one show frame packed data parsered
Wang, Fei W
fei.w.wang at intel.com
Mon Dec 6 07:20:37 EET 2021
On Fri, 2021-12-03 at 11:51 +0100, Michael Niedermayer wrote:
> 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.
Thanks Michael to catch this. Will check it soon.
Fei
Thanks
>
> i will send you the testsample privatly
>
> thx
>
> [...]
> _______________________________________________
> 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