Some fields were incorrectly reset (to NULL) when calling avcodec_copy_context().

Patch by Jean-Daniel Dupas, devlists shadowlab org

Originally committed as revision 23344 to svn://svn.ffmpeg.org/ffmpeg/trunk
oldabi
Jean-Daniel Dupas 15 years ago committed by Carl Eugen Hoyos
parent 867ab7fb0a
commit 71dab7be91
  1. 3
      libavcodec/options.c

@ -491,9 +491,6 @@ int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
dest->slice_offset = NULL; dest->slice_offset = NULL;
dest->internal_buffer = NULL; dest->internal_buffer = NULL;
dest->hwaccel = NULL; dest->hwaccel = NULL;
dest->execute = NULL;
dest->execute2 = NULL;
dest->reget_buffer = NULL;
dest->thread_opaque = NULL; dest->thread_opaque = NULL;
/* reallocate values that should be allocated separately */ /* reallocate values that should be allocated separately */

Loading…
Cancel
Save