Message ID | 20210304154233.934640-1-andreas.rheinhardt@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [FFmpeg-devel,1/8] avcodec/decode: constify the source packet parameter in extract_packet_props() | 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 3/4/2021 12:42 PM, Andreas Rheinhardt wrote: > From: James Almer <jamrial@gmail.com> > > Signed-off-by: James Almer <jamrial@gmail.com> > --- > libavcodec/decode.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) I'll take this as a LGTM from you, so pushed. > > diff --git a/libavcodec/decode.c b/libavcodec/decode.c > index d445ac75b0..5e5d0c7066 100644 > --- a/libavcodec/decode.c > +++ b/libavcodec/decode.c > @@ -144,7 +144,7 @@ fail2: > > #define IS_EMPTY(pkt) (!(pkt)->data) > > -static int copy_packet_props(AVPacket *dst, AVPacket *src) > +static int copy_packet_props(AVPacket *dst, const AVPacket *src) > { > int ret = av_packet_copy_props(dst, src); > if (ret < 0) > @@ -156,7 +156,7 @@ static int copy_packet_props(AVPacket *dst, AVPacket *src) > return 0; > } > > -static int extract_packet_props(AVCodecInternal *avci, AVPacket *pkt) > +static int extract_packet_props(AVCodecInternal *avci, const AVPacket *pkt) > { > AVPacket tmp = { 0 }; > int ret = 0;
diff --git a/libavcodec/decode.c b/libavcodec/decode.c index d445ac75b0..5e5d0c7066 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -144,7 +144,7 @@ fail2: #define IS_EMPTY(pkt) (!(pkt)->data) -static int copy_packet_props(AVPacket *dst, AVPacket *src) +static int copy_packet_props(AVPacket *dst, const AVPacket *src) { int ret = av_packet_copy_props(dst, src); if (ret < 0) @@ -156,7 +156,7 @@ static int copy_packet_props(AVPacket *dst, AVPacket *src) return 0; } -static int extract_packet_props(AVCodecInternal *avci, AVPacket *pkt) +static int extract_packet_props(AVCodecInternal *avci, const AVPacket *pkt) { AVPacket tmp = { 0 }; int ret = 0;