diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-08-31 23:01:09 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-09-01 19:41:20 +0200 |
commit | e8d0b84e8a5893ed29993e743de82079c93b5fb6 (patch) | |
tree | 0ad0f50185bb2921be6ae02c15bfaa4eb6a19ebe /libavcodec/ituh263dec.c | |
parent | 36c0043344fd6d99e92f42cfd1d718a9272ad632 (diff) | |
download | ffmpeg-e8d0b84e8a5893ed29993e743de82079c93b5fb6.tar.gz |
h261dec, ituh263dec: Move condition.
Stops compiler from doing incredibly stupid things.
With vsynth1-flv inner loop goes from 3501 to 3275
decicycles.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavcodec/ituh263dec.c')
-rw-r--r-- | libavcodec/ituh263dec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c index 7be56bf794..70a8ffe7d7 100644 --- a/libavcodec/ituh263dec.c +++ b/libavcodec/ituh263dec.c @@ -485,12 +485,12 @@ retry: for(;;) { UPDATE_CACHE(re, &s->gb); GET_RL_VLC(level, run, re, &s->gb, rl->rl_vlc[0], TEX_VLC_BITS, 2, 0); - if (run == 66 && level){ - CLOSE_READER(re, &s->gb); - av_log(s->avctx, AV_LOG_ERROR, "illegal ac vlc code at %dx%d\n", s->mb_x, s->mb_y); - return -1; - } if (run == 66) { + if (level){ + CLOSE_READER(re, &s->gb); + av_log(s->avctx, AV_LOG_ERROR, "illegal ac vlc code at %dx%d\n", s->mb_x, s->mb_y); + return -1; + } /* escape */ if (CONFIG_FLV_DECODER && s->h263_flv > 1) { int is11 = SHOW_UBITS(re, &s->gb, 1); |