[FFmpeg-cvslog] avcodec/cabac: force get_cabac to be not inlined
Michael Niedermayer
git at videolan.org
Mon Dec 9 10:40:53 CET 2013
ffmpeg | branch: release/1.0 | Michael Niedermayer <michaelni at gmx.at> | Thu Dec 5 01:41:10 2013 +0100| [e28d96024bdf3016b9de468981e7b4a64ebe848b] | committer: Carl Eugen Hoyos
avcodec/cabac: force get_cabac to be not inlined
works around bug in gccs inline asm register assignment
Fixes Ticket3177
gcc from 4.4 to 4.6 is affected at least, no non affected gccs known
clang seems not affected
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 0538b29ae8002c44f27bae8a1a6fc6e646998be5)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e28d96024bdf3016b9de468981e7b4a64ebe848b
---
libavcodec/cabac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c
index 385721f..d8f34c8 100644
--- a/libavcodec/cabac.c
+++ b/libavcodec/cabac.c
@@ -305,7 +305,7 @@ STOP_TIMER("get_cabac_bypass")
for(i=0; i<SIZE; i++){
START_TIMER
- if( (r[i]&1) != get_cabac(&c, state) )
+ if( (r[i]&1) != get_cabac_noinline(&c, state) )
av_log(NULL, AV_LOG_ERROR, "CABAC failure at %d\n", i);
STOP_TIMER("get_cabac")
}
More information about the ffmpeg-cvslog
mailing list