Hi all,
    I compile ffmpeg for android, some bugs as below:

MACRO B0
bionic/libc/kernel/uapi/asm-generic/termbits.h:142:#define B0 0000000
src/libavcodec/aaccoder.c:803:25: error: expected identifier or '(' before 
numeric constant
                     int B0 = 0, B1 = 0;



atomic_int
src/libavcodec/h264_slice.c:2757:36: error: incompatible types when assigning 
to type 'atomic_int' from type 'int'
                 sl->er.error_count = 0;
                                    ^
src/libavcodec/h264_slice.c:2782:48: error: invalid operands to binary + (have 
'atomic_int' and 'atomic_int')
                 h->slice_ctx[0].er.error_count += 
h->slice_ctx[i].er.error_count;



    I change it as below, compile ok.
+#undef B0


-                sl->er.error_count = 0;
+               atomic_store(&sl->er.error_count, 0);
-                h->slice_ctx[0].er.error_count += 
h->slice_ctx[i].er.error_count;
+               atomic_fetch_add(&h->slice_ctx[0].er.error_count, 
atomic_load(&h->slice_ctx[i].er.error_count));




------------------
good luck to you.
 lenge
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to