summaryrefslogtreecommitdiff
path: root/libavcodec/options.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-12 11:35:35 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-10-12 11:35:35 +0000
commit8d23a86f3346121f64b1ce80c3e0740e05fd2b29 (patch)
tree6645c63f8ca4ca4a97da7325b758cb4a7724aee0 /libavcodec/options.c
parentfebd1c90a64c1df2d72600d0fe1f020e88d10953 (diff)
Add an execute2 function that is more flexible and allows to use parallel
processing with jobs > threads without wasting too much memory. It also avoids needing a separate int array when the only additional data the jobs needs is a single int running from 0 to count-1. Originally committed as revision 20210 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/options.c')
-rw-r--r--libavcodec/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c
index d3a4916fc6..dbfdf70682 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -433,6 +433,7 @@ void avcodec_get_context_defaults2(AVCodecContext *s, enum CodecType codec_type)
s->release_buffer= avcodec_default_release_buffer;
s->get_format= avcodec_default_get_format;
s->execute= avcodec_default_execute;
+ s->execute2= avcodec_default_execute2;
s->sample_aspect_ratio= (AVRational){0,1};
s->pix_fmt= PIX_FMT_NONE;
s->sample_fmt= SAMPLE_FMT_S16; // FIXME: set to NONE