[FFmpeg-cvslog] lavc/truemotion2rt: mark AVPacket* as const

Clément Bœsch git at videolan.org
Thu Jul 14 19:30:32 CEST 2016


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Thu Jul 14 19:29:43 2016 +0200| [bec7145252165249da9e1d447197cca120856057] | committer: Clément Bœsch

lavc/truemotion2rt: mark AVPacket* as const

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bec7145252165249da9e1d447197cca120856057
---

 libavcodec/truemotion2rt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/truemotion2rt.c b/libavcodec/truemotion2rt.c
index 0d45912..94d4480 100644
--- a/libavcodec/truemotion2rt.c
+++ b/libavcodec/truemotion2rt.c
@@ -56,7 +56,7 @@ static const int16_t *const delta_tabs[] = {
 
 /* Returns the number of bytes consumed from the bytestream, or
  * AVERROR_INVALIDDATA if there was an error while decoding the header. */
-static int truemotion2rt_decode_header(AVCodecContext *avctx, AVPacket *avpkt)
+static int truemotion2rt_decode_header(AVCodecContext *avctx, const AVPacket *avpkt)
 {
     TrueMotion2RTContext *s = avctx->priv_data;
     int header_size;



More information about the ffmpeg-cvslog mailing list