Message ID | 20210816155102.9731-1-jamrial@gmail.com |
---|---|
State | Accepted |
Commit | 6dd7149f4c35be1378feecbdc1c57090d095201e |
Headers | show |
Series | [FFmpeg-devel,1/4] avcodec/pthread_frame: also keep AVCodecContext.properties in sync between threads | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
On 8/16/2021 12:50 PM, James Almer wrote: > Some frame threaded decoders set it, but this information never reached the > caller in frame threading scenarios. > > Signed-off-by: James Almer <jamrial@gmail.com> > --- > libavcodec/pthread_frame.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c > index 2ff71ca39e..8c0966f026 100644 > --- a/libavcodec/pthread_frame.c > +++ b/libavcodec/pthread_frame.c > @@ -277,6 +277,7 @@ static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, > > dst->has_b_frames = src->has_b_frames; > dst->idct_algo = src->idct_algo; > + dst->properties = src->properties; > > dst->bits_per_coded_sample = src->bits_per_coded_sample; > dst->sample_aspect_ratio = src->sample_aspect_ratio; Will apply set.
diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c index 2ff71ca39e..8c0966f026 100644 --- a/libavcodec/pthread_frame.c +++ b/libavcodec/pthread_frame.c @@ -277,6 +277,7 @@ static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, dst->has_b_frames = src->has_b_frames; dst->idct_algo = src->idct_algo; + dst->properties = src->properties; dst->bits_per_coded_sample = src->bits_per_coded_sample; dst->sample_aspect_ratio = src->sample_aspect_ratio;
Some frame threaded decoders set it, but this information never reached the caller in frame threading scenarios. Signed-off-by: James Almer <jamrial@gmail.com> --- libavcodec/pthread_frame.c | 1 + 1 file changed, 1 insertion(+)