diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2012-11-29 08:41:18 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2012-12-07 16:05:34 +0800 |
commit | 4a537c200b395e2c22da2769c9cc3ceb02073690 (patch) | |
tree | 96af5eff579c44e0dce8b49a328b3ead6c677372 | |
parent | 13367ef188cf3de9eaa6a89dc80d8e00d9e60f05 (diff) | |
download | libva-4a537c200b395e2c22da2769c9cc3ceb02073690.tar.gz |
mpeg2enc: fix a typo
s/patter/pattern
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r-- | test/encode/mpeg2enc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/encode/mpeg2enc.c b/test/encode/mpeg2enc.c index 8fc15fa..faaa1d0 100644 --- a/test/encode/mpeg2enc.c +++ b/test/encode/mpeg2enc.c @@ -62,7 +62,7 @@ exit(1); \ } -static int const picture_type_patter[][2] = {{VAEncPictureTypeIntra, 1}, +static int const picture_type_pattern[][2] = {{VAEncPictureTypeIntra, 1}, {VAEncPictureTypePredictive, 3}, {VAEncPictureTypePredictive, 3},{VAEncPictureTypePredictive, 3}, {VAEncPictureTypePredictive, 3}, {VAEncPictureTypePredictive, 3},{VAEncPictureTypePredictive, 3}, {VAEncPictureTypePredictive, 3}, {VAEncPictureTypePredictive, 3},{VAEncPictureTypePredictive, 3}, @@ -1311,25 +1311,25 @@ mpeg2enc_run(struct mpeg2enc_context *ctx) assert(0); - fcurrent = fcurrent % (sizeof(picture_type_patter)/sizeof(int[2])); - fnext = (fcurrent+1) % (sizeof(picture_type_patter)/sizeof(int[2])); + fcurrent = fcurrent % (sizeof(picture_type_pattern)/sizeof(int[2])); + fnext = (fcurrent+1) % (sizeof(picture_type_pattern)/sizeof(int[2])); - if ( picture_type_patter[fcurrent][0] == VAEncPictureTypeIntra ) { + if ( picture_type_pattern[fcurrent][0] == VAEncPictureTypeIntra ) { encode_picture(ctx, coded_order, display_order, VAEncPictureTypeIntra, 0, - display_order + picture_type_patter[fnext][1]); + display_order + picture_type_pattern[fnext][1]); display_order++; coded_order++; } else { encode_pb_pictures(ctx, coded_order, display_order, - picture_type_patter[fcurrent][1] - 1, - display_order + picture_type_patter[fcurrent][1] + picture_type_patter[fnext][1] - 1); - display_order += picture_type_patter[fcurrent][1]; + picture_type_pattern[fcurrent][1] - 1, + display_order + picture_type_pattern[fcurrent][1] + picture_type_pattern[fnext][1] - 1); + display_order += picture_type_pattern[fcurrent][1]; coded_order++; } |