aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-04-02 10:18:29 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-04-02 10:18:29 +0000
commit2c19981a93c5c6dd499cc9880a3ecc8a4bbc4753 (patch)
treefa860166c8028eaa2352425dc0d5ec586d16436a /libavcodec/utils.c
parent4d2a48349d6f40a2357bb25b4f360f2a6e669ad4 (diff)
downloadffmpeg-2c19981a93c5c6dd499cc9880a3ecc8a4bbc4753.tar.gz
10l
Originally committed as revision 1725 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 037abdc00f..5e1fbee173 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -131,7 +131,7 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
DefaultPicOpaque *opaque;
assert(pic->data[0]==NULL);
- assert(pic->type==0 || pic->type==FF_TYPE_INTERNAL);
+ assert(pic->type==0 || pic->type==FF_BUFFER_TYPE_INTERNAL);
if(pic->opaque){
opaque= (DefaultPicOpaque *)pic->opaque;
@@ -181,8 +181,8 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
opaque->last_pic_num= -256*256*256*64;
for(i=0; i<3; i++){
- int h_shift= i==0 ? 0 : h_chroma_shift;
- int v_shift= i==0 ? 0 : v_chroma_shift;
+ const int h_shift= i==0 ? 0 : h_chroma_shift;
+ const int v_shift= i==0 ? 0 : v_chroma_shift;
pic->linesize[i]= pixel_size*w>>h_shift;