mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-22 00:20:07 +08:00
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user