Commit 11537d8d authored by cehoyos's avatar cehoyos

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

Patch by Jean-Daniel Dupas, devlists shadowlab org 


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23344 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f059463f
...@@ -491,9 +491,6 @@ int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src) ...@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment