On 12/20/2019 10:59 PM, Limin Wang wrote:
> On Fri, Dec 20, 2019 at 02:05:42PM -0300, James Almer wrote:
>> Based on h264 code.
>>
>> Signed-off-by: James Almer <jamr...@gmail.com>
>> ---
>>  libavcodec/hevcdec.c | 7 +++++++
>>  1 file changed, 7 insertions(+)
>>
>> diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
>> index f8270b87c3..19b0cd815d 100644
>> --- a/libavcodec/hevcdec.c
>> +++ b/libavcodec/hevcdec.c
>> @@ -3463,6 +3463,13 @@ static int hevc_update_thread_context(AVCodecContext 
>> *dst,
>>          s->max_ra = INT_MAX;
>>      }
>>  
>> +    av_buffer_unref(&s->sei.a53_caption.buf_ref);
>> +    if (s0->sei.a53_caption.buf_ref) {
>> +        s->sei.a53_caption.buf_ref = 
>> av_buffer_ref(s0->sei.a53_caption.buf_ref);
>> +        if (!s->sei.a53_caption.buf_ref)
>> +            return AVERROR(ENOMEM);
>> +    }
>> +
> 
> LGTM

Applied, thanks.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to