[FFmpeg-devel] [PATCH 1/6] audio frame multi-threaded decoding
Paul B Mahol
onemda at gmail.com
Tue Jun 4 11:25:23 CEST 2013
On 6/4/13, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Mon, Jun 03, 2013 at 04:47:52PM +0000, Paul B Mahol wrote:
>> Signed-off-by: Paul B Mahol <onemda at gmail.com>
>> ---
>> libavcodec/options_table.h | 6 +++---
>> libavcodec/pthread.c | 8 +++++++-
>> libavcodec/utils.c | 10 +++++++---
>> 3 files changed, 17 insertions(+), 7 deletions(-)
>>
[...]
>> @@ -2084,11 +2084,15 @@ int attribute_align_arg
>> avcodec_decode_audio4(AVCodecContext *avctx,
>> apply_param_change(avctx, &tmp);
>>
>> avctx->pkt = &tmp;
>> - ret = avctx->codec->decode(avctx, frame, got_frame_ptr, &tmp);
>
>> + if (HAVE_THREADS && avctx->active_thread_type &&
>> FF_THREAD_FRAME)
>
> the && looks wrong
Fixed, is rest of code correct?
>
> [...]
> --
> Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> What does censorship reveal? It reveals fear. -- Julian Assange
>
More information about the ffmpeg-devel
mailing list