aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vaapi_vc1.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_vc1.c
parentc373f61ddbd70a471248f6b1ad22688e889e1022 (diff)
downloadffmpeg-e6d3534f9c4e713772a980889b6fa5aa6b5143f3.tar.gz
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_vc1.c')
-rw-r--r--libavcodec/vaapi_vc1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/vaapi_vc1.c b/libavcodec/vaapi_vc1.c
index b3777f5186..efeaff115b 100644
--- a/libavcodec/vaapi_vc1.c
+++ b/libavcodec/vaapi_vc1.c
@@ -145,9 +145,9 @@ static int vaapi_vc1_start_frame(AVCodecContext *avctx, av_unused const uint8_t
pic_param = ff_vaapi_alloc_pic_param(vactx, sizeof(VAPictureParameterBufferVC1));
if (!pic_param)
return -1;
- pic_param->forward_reference_picture = 0xffffffff;
- pic_param->backward_reference_picture = 0xffffffff;
- pic_param->inloop_decoded_picture = 0xffffffff;
+ pic_param->forward_reference_picture = VA_INVALID_ID;
+ pic_param->backward_reference_picture = VA_INVALID_ID;
+ pic_param->inloop_decoded_picture = VA_INVALID_ID;
pic_param->sequence_fields.value = 0; /* reset all bits */
pic_param->sequence_fields.bits.pulldown = v->broadcast;
pic_param->sequence_fields.bits.interlace = v->interlace;