[FFmpeg-devel] [PATCH 3/4] libavcodec/qsvdec.c: The ff_qsv_decode() now guarantees the consumption of whole packet.

Michael Niedermayer michael at niedermayer.cc
Thu Jul 23 22:47:28 CEST 2015


On Thu, Jul 23, 2015 at 06:59:54PM +0300, Ivan Uskov wrote:
> Hello Michael,
> 
> Thursday, July 23, 2015, 6:29:13 PM, you wrote:
> 
> >> +        } else {
> >> +            bs.Data       = avpkt->data;
> >> +            bs.DataLength = avpkt->size;
> >> +        }
> 
> MN> Does this mean that each packet will be memcpy-ed ?
> MN> this would slow things down
> Exactly not. Copying uses only for quite rare case when decoder does
> not consume several bytes at tail packet tail. Then these bytes copied
> into fifo. Next time these bytes usually are totally consumed with new
> packet and only reference to packets uses in general decoding.
> For several test streams I'm observing that 2-3 bytes copying appear
> only at begin of decoding, for first 5-10 frames.

what are these additional bytes?
why are they not consumed ?

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

The worst form of inequality is to try to make unequal things equal.
-- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150723/b61b59f7/attachment.sig>


More information about the ffmpeg-devel mailing list