[FFmpeg-devel] [PATCH] 2 alternative ways to check in vp9 decode_tiles() if there is data remaining

Michael Niedermayer michael at niedermayer.cc
Sat Oct 20 13:42:35 EEST 2018


Hi

2 alternative patchsets are attached to fix $SUBJ

The 2 alternatives should behave similar.

The first adds a function to check if the next range coder symbol read would
trigger the end of input case.
We then error out before reading in case the read would trigger this case

The second sets a flag if the end of input case triggered and subsequently
errors out

The second case should be slower as it requires additional checks in inner
loops, but i was asked to implement this with a flag, so i implemented both
ways.

Which version, if any, should i apply ?

Thanks

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

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avcodec-vp56-Add-vpX_rac_is_end-to-check-for-the-end.patch
Type: text/x-patch
Size: 1086 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20181020/12a70415/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-avcodec-vp9-Check-in-decode_tiles-if-there-is-data-r.patch
Type: text/x-patch
Size: 1229 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20181020/12a70415/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avcodec-vp56-Add-is_end-flag.patch
Type: text/x-patch
Size: 1247 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20181020/12a70415/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-avcodec-vp9-Check-in-decode_tiles-if-there-is-data-r.patch
Type: text/x-patch
Size: 1126 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20181020/12a70415/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20181020/12a70415/attachment.sig>


More information about the ffmpeg-devel mailing list