mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
41 lines
1.6 KiB
Diff
41 lines
1.6 KiB
Diff
--- a/libavcodec/lcevcdec.c
|
|
+++ b/libavcodec/lcevcdec.c
|
|
@@ -139,7 +139,7 @@ static int lcevc_send_frame(void *logctx
|
|
if (!sd)
|
|
return 1;
|
|
|
|
- res = LCEVC_SendDecoderEnhancementData(lcevc->decoder, in->pts, 0, sd->data, sd->size);
|
|
+ res = LCEVC_SendDecoderEnhancementData(lcevc->decoder, (uint64_t) in->pts, sd->data, sd->size);
|
|
if (res != LCEVC_Success)
|
|
return AVERROR_EXTERNAL;
|
|
|
|
@@ -147,7 +147,7 @@ static int lcevc_send_frame(void *logctx
|
|
if (ret < 0)
|
|
return ret;
|
|
|
|
- res = LCEVC_SendDecoderBase(lcevc->decoder, in->pts, 0, picture, -1, NULL);
|
|
+ res = LCEVC_SendDecoderBase(lcevc->decoder, (uint64_t) in->pts, picture, -1, NULL);
|
|
if (res != LCEVC_Success)
|
|
return AVERROR_EXTERNAL;
|
|
|
|
--- a/libavfilter/vf_lcevc.c
|
|
+++ b/libavfilter/vf_lcevc.c
|
|
@@ -139,7 +139,7 @@ static int send_frame(AVFilterLink *inlink, AVFrame *in)
|
|
return ret;
|
|
|
|
if (sd) {
|
|
- res = LCEVC_SendDecoderEnhancementData(lcevc->decoder, in->pts, 0, sd->data, sd->size);
|
|
+ res = LCEVC_SendDecoderEnhancementData(lcevc->decoder, (uint64_t) in->pts, sd->data, sd->size);
|
|
if (res == LCEVC_Again)
|
|
return AVERROR(EAGAIN);
|
|
else if (res != LCEVC_Success) {
|
|
@@ -148,7 +148,7 @@ static int send_frame(AVFilterLink *inlink, AVFrame *in)
|
|
}
|
|
}
|
|
|
|
- res = LCEVC_SendDecoderBase(lcevc->decoder, in->pts, 0, picture, -1, in);
|
|
+ res = LCEVC_SendDecoderBase(lcevc->decoder, (uint64_t) in->pts, picture, -1, in);
|
|
if (res != LCEVC_Success) {
|
|
av_log(ctx, AV_LOG_ERROR, "LCEVC_SendDecoderBase failed\n");
|
|
LCEVC_FreePicture(lcevc->decoder, picture);
|