Originally committed as revision 11741 to svn://svn.ffmpeg.org/ffmpeg/trunk

Michael Niedermayer authored on 2008/02/01 23:08:35
Showing 1 changed files
... ...
@@ -597,7 +597,7 @@ static int rv10_decode_end(AVCodecContext *avctx)
597 597
 }
598 598
 
599 599
 static int rv10_decode_packet(AVCodecContext *avctx,
600
-                             uint8_t *buf, int buf_size)
600
+                             const uint8_t *buf, int buf_size)
601 601
 {
602 602
     MpegEncContext *s = avctx->priv_data;
603 603
     int mb_count, mb_pos, left, start_mb_x;
... ...
@@ -711,7 +711,7 @@ static int rv10_decode_packet(AVCodecContext *avctx,
711 711
     return buf_size;
712 712
 }
713 713
 
714
-static int get_slice_offset(AVCodecContext *avctx, uint8_t *buf, int n)
714
+static int get_slice_offset(AVCodecContext *avctx, const uint8_t *buf, int n)
715 715
 {
716 716
     if(avctx->slice_count) return avctx->slice_offset[n];
717 717
     else                   return AV_RL32(buf + n*8);
... ...
@@ -719,13 +719,13 @@ static int get_slice_offset(AVCodecContext *avctx, uint8_t *buf, int n)
719 719
 
720 720
 static int rv10_decode_frame(AVCodecContext *avctx,
721 721
                              void *data, int *data_size,
722
-                             uint8_t *buf, int buf_size)
722
+                             const uint8_t *buf, int buf_size)
723 723
 {
724 724
     MpegEncContext *s = avctx->priv_data;
725 725
     int i;
726 726
     AVFrame *pict = data;
727 727
     int slice_count;
728
-    uint8_t *slices_hdr = NULL;
728
+    const uint8_t *slices_hdr = NULL;
729 729
 
730 730
 #ifdef DEBUG
731 731
     av_log(avctx, AV_LOG_DEBUG, "*****frame %d size=%d\n", avctx->frame_number, buf_size);