aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Marek <lukasz.m.luki@gmail.com>2014-02-07 16:43:10 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-08 02:55:51 +0100
commit3f47e24cbeb8d7e530ad9d7b47b0660a2754efa3 (patch)
treee52957ca49d329091f7c22c66237148be034b575
parentaeb2905fb7cebf457b53323195855871383e53bb (diff)
downloadffmpeg-3f47e24cbeb8d7e530ad9d7b47b0660a2754efa3.tar.gz
lavc/mpegvideo: add missing const
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/mpegvideo.h2
-rw-r--r--libavcodec/mpegvideo_enc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index 47a58f74b4..afc9c51c0a 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -800,7 +800,7 @@ void ff_MPV_frame_end(MpegEncContext *s);
int ff_MPV_encode_init(AVCodecContext *avctx);
int ff_MPV_encode_end(AVCodecContext *avctx);
int ff_MPV_encode_picture(AVCodecContext *avctx, AVPacket *pkt,
- AVFrame *frame, int *got_packet);
+ const AVFrame *frame, int *got_packet);
void ff_dct_encode_init_x86(MpegEncContext *s);
void ff_MPV_common_init_x86(MpegEncContext *s);
void ff_MPV_common_init_axp(MpegEncContext *s);
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index fa695ad20b..54ef15f5e7 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -1603,7 +1603,7 @@ static int frame_start(MpegEncContext *s)
}
int ff_MPV_encode_picture(AVCodecContext *avctx, AVPacket *pkt,
- AVFrame *pic_arg, int *got_packet)
+ const AVFrame *pic_arg, int *got_packet)
{
MpegEncContext *s = avctx->priv_data;
int i, stuffing_count, ret;