[Ffmpeg-devel] Video stutter in decoder

Michael Niedermayer michaelni
Sat Mar 10 02:25:31 CET 2007


Hi

On Fri, Mar 02, 2007 at 09:27:44PM -0500, Cyril Zorin wrote:
> Hi all,
> 
> Is it allowed to manually set the data[0] and linesize[0] of an  
> AVFrame? That is, I allocate my own buffer with av_mallocz, decode  
> video into it, and then take an AVFrame and assign the data[0] to my  
> buffer, and linesize[0] to my line size. Is this allowed? 

yes, just DONT set CODEC_CAP_DR1


> I'm trying  
> to do this but for some reason the (decoded) video stutters. On the  
> other hand, if I allocate memory for an AVFrame with get_buffer and  
> then manually copy my work buffer into that memory, everything is  
> fine. Any ideas?

well why dont you use get_buffer() every multithreaded player will
have to copy your frame, every player using xv will have to copy
your frame, ... if you dont use get_buffer()

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I count him braver who overcomes his desires than him who conquers his
enemies for the hardest victory is over self. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070310/54364802/attachment.pgp>



More information about the ffmpeg-devel mailing list