[FFmpeg-devel] question about with avcodec_copy_context

Michael Niedermayer michaelni
Thu May 27 02:32:56 CEST 2010


On Wed, May 26, 2010 at 11:07:46PM +0200, Jean-Daniel Dupas wrote:
> 
> Le 26 mai 2010 ? 22:11, Michael Niedermayer a ?crit :
> 
> > On Thu, Apr 15, 2010 at 05:01:10PM +0200, Jean-Daniel Dupas wrote:
> >> Hello,
> >> 
> >> In avcodec_copy_context(), I see that the function reset fields "specific to opened codecs".
> >> Are execute, execute2 and reget_buffer really specific to opened context ? They are set during codec creation (in avcodec_alloc_context) so why are they reset here ? 
> >> As reget_buffer is not set anywhere else, using the copied context with a codec that require this function will make the program crash.
> >> 
> >> Did I miss something, or is this a bug ? 
> > 
> > it appears to be a bug, a patch fixing it is welcome
> > 
> 
> No problem
> 

>  options.c |    3 ---
>  1 file changed, 3 deletions(-)
> ca9f1ffc2739413823e28baa14c36f18edd99fdc  00-avcopy.patch

looks ok

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Let us carefully observe those good qualities wherein our enemies excel us
and endeavor to excel them, by avoiding what is faulty, and imitating what
is excellent in them. -- Plutarch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100527/178e65b3/attachment.pgp>



More information about the ffmpeg-devel mailing list