diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-08-26 09:57:19 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-08-26 14:03:56 +0200 |
commit | a6d9f9e60e090d3ef1be6c8497d3f5eaa7bd4e2e (patch) | |
tree | 1e1966f6816a51f8f8b6bc532361064857788570 /libavcodec/cavs.c | |
parent | ef07ac1e126b95ad7e1b56504c19b59901265c3e (diff) | |
download | ffmpeg-a6d9f9e60e090d3ef1be6c8497d3f5eaa7bd4e2e.tar.gz |
cavs: Move inline functions only used in one file out of the header
Diffstat (limited to 'libavcodec/cavs.c')
-rw-r--r-- | libavcodec/cavs.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/cavs.c b/libavcodec/cavs.c index c3eebfabbb..1188974dc9 100644 --- a/libavcodec/cavs.c +++ b/libavcodec/cavs.c @@ -328,6 +328,15 @@ static void intra_pred_lp_top(uint8_t *d,uint8_t *top,uint8_t *left,int stride) #undef LOWPASS +static inline void modify_pred(const int8_t *mod_table, int *mode) +{ + *mode = mod_table[*mode]; + if(*mode < 0) { + av_log(NULL, AV_LOG_ERROR, "Illegal intra prediction mode\n"); + *mode = 0; + } +} + void ff_cavs_modify_mb_i(AVSContext *h, int *pred_mode_uv) { /* save pred modes before they get modified */ h->pred_mode_Y[3] = h->pred_mode_Y[5]; |