aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/svq1.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-01-09 18:33:21 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-01-09 18:33:21 +0000
commitc46eeae2a80dfe0046c15b542e8b9a2c78f19bf7 (patch)
tree8c0378f0ae122dd5fcd3b101f7b55d0d233188f2 /libavcodec/svq1.h
parentaa11ce6568a190b7c843c57bcbc8f5e1785af99b (diff)
downloadffmpeg-c46eeae2a80dfe0046c15b542e8b9a2c78f19bf7.tar.gz
Add a function to match a 2 element vector of uint16_t and use it in h263 and svq1
instead of custom and bloated code to find an index into a w/h array. Originally committed as revision 21113 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq1.h')
-rw-r--r--libavcodec/svq1.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/svq1.h b/libavcodec/svq1.h
index bcae245e6e..283bc18399 100644
--- a/libavcodec/svq1.h
+++ b/libavcodec/svq1.h
@@ -43,8 +43,8 @@
#define SVQ1_BLOCK_INTRA 3
struct svq1_frame_size {
- int width;
- int height;
+ uint16_t width;
+ uint16_t height;
};
uint16_t ff_svq1_packet_checksum (const uint8_t *data, const int length,
@@ -59,6 +59,6 @@ extern const uint8_t ff_svq1_inter_multistage_vlc[6][8][2];
extern const uint16_t ff_svq1_intra_mean_vlc[256][2];
extern const uint16_t ff_svq1_inter_mean_vlc[512][2];
-extern const struct svq1_frame_size ff_svq1_frame_size_table[8];
+extern const struct svq1_frame_size ff_svq1_frame_size_table[7];
#endif /* AVCODEC_SVQ1_H */