summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_mpeg4.c
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-12-28 15:19:36 +0000
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-12-28 15:19:36 +0000
commite6d3534f9c4e713772a980889b6fa5aa6b5143f3 (patch)
treed9578345ddc30cffd8d379cd76e708614cbfe27c /libavcodec/vaapi_mpeg4.c
parentc373f61ddbd70a471248f6b1ad22688e889e1022 (diff)
Use VA_INVALID_ID instead of hard coded values.
Originally committed as revision 20948 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vaapi_mpeg4.c')
-rw-r--r--libavcodec/vaapi_mpeg4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vaapi_mpeg4.c b/libavcodec/vaapi_mpeg4.c
index 15883a8464..4e606f0f1d 100644
--- a/libavcodec/vaapi_mpeg4.c
+++ b/libavcodec/vaapi_mpeg4.c
@@ -56,8 +56,8 @@ static int vaapi_mpeg4_start_frame(AVCodecContext *avctx, av_unused const uint8_
return -1;
pic_param->vop_width = s->width;
pic_param->vop_height = s->height;
- pic_param->forward_reference_picture = 0xffffffff;
- pic_param->backward_reference_picture = 0xffffffff;
+ pic_param->forward_reference_picture = VA_INVALID_ID;
+ pic_param->backward_reference_picture = VA_INVALID_ID;
pic_param->vol_fields.value = 0; /* reset all bits */
pic_param->vol_fields.bits.short_video_header = avctx->codec->id == CODEC_ID_H263;
pic_param->vol_fields.bits.chroma_format = CHROMA_420;