mpeg2enc: fix a typo
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 29 Nov 2012 00:41:18 +0000 (08:41 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 28 May 2013 08:46:49 +0000 (16:46 +0800)
s/patter/pattern

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
test/encode/mpeg2enc.c

index 4f238ce..367e0cc 100644 (file)
@@ -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},
@@ -1309,25 +1309,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++;
             }