Mercurial > libavcodec.hg
changeset 10725:3b6b7fe1c27c libavcodec
Use VA_INVALID_ID instead of hard coded values.
author | gb |
---|---|
date | Mon, 28 Dec 2009 15:19:36 +0000 |
parents | de8d07d87c45 |
children | 1550e82f6183 |
files | vaapi_mpeg2.c vaapi_mpeg4.c vaapi_vc1.c |
diffstat | 3 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/vaapi_mpeg2.c Mon Dec 28 09:03:09 2009 +0000 +++ b/vaapi_mpeg2.c Mon Dec 28 15:19:36 2009 +0000 @@ -54,8 +54,8 @@ return -1; pic_param->horizontal_size = s->width; pic_param->vertical_size = 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->picture_coding_type = s->pict_type; pic_param->f_code = mpeg2_get_f_code(s); pic_param->picture_coding_extension.value = 0; /* reset all bits */
--- a/vaapi_mpeg4.c Mon Dec 28 09:03:09 2009 +0000 +++ b/vaapi_mpeg4.c Mon Dec 28 15:19:36 2009 +0000 @@ -56,8 +56,8 @@ 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;
--- a/vaapi_vc1.c Mon Dec 28 09:03:09 2009 +0000 +++ b/vaapi_vc1.c Mon Dec 28 15:19:36 2009 +0000 @@ -145,9 +145,9 @@ 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;