fix bug of compile ts_info on old gcc, add LL to large number.
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
@@ -848,11 +848,11 @@ int TSAdaptionField::demux(TSContext* ctx, TSPacket* pkt, u_int8_t* start, u_int | @@ -848,11 +848,11 @@ int TSAdaptionField::demux(TSContext* ctx, TSPacket* pkt, u_int8_t* start, u_int | ||
848 | pp[0] = *p++; | 848 | pp[0] = *p++; |
849 | 849 | ||
850 | program_clock_reference_extension = program_clock_reference_base & 0x1ff; | 850 | program_clock_reference_extension = program_clock_reference_base & 0x1ff; |
851 | - program_clock_reference_base = (program_clock_reference_base >> 15) & 0x1ffffffff; | 851 | + program_clock_reference_base = (program_clock_reference_base >> 15) & 0x1ffffffffLL; |
852 | 852 | ||
853 | // high 9bits | 853 | // high 9bits |
854 | pcr = program_clock_reference_extension; | 854 | pcr = program_clock_reference_extension; |
855 | - pcr = (pcr << 33) & 0x3fe00000000; | 855 | + pcr = (pcr << 33) & 0x3fe00000000LL; |
856 | // low 33bits | 856 | // low 33bits |
857 | pcr |= program_clock_reference_base; | 857 | pcr |= program_clock_reference_base; |
858 | } | 858 | } |
@@ -866,11 +866,11 @@ int TSAdaptionField::demux(TSContext* ctx, TSPacket* pkt, u_int8_t* start, u_int | @@ -866,11 +866,11 @@ int TSAdaptionField::demux(TSContext* ctx, TSPacket* pkt, u_int8_t* start, u_int | ||
866 | pp[0] = *p++; | 866 | pp[0] = *p++; |
867 | 867 | ||
868 | original_program_clock_reference_extension = original_program_clock_reference_base & 0x1ff; | 868 | original_program_clock_reference_extension = original_program_clock_reference_base & 0x1ff; |
869 | - original_program_clock_reference_base = (original_program_clock_reference_base >> 15) & 0x1ffffffff; | 869 | + original_program_clock_reference_base = (original_program_clock_reference_base >> 15) & 0x1ffffffffLL; |
870 | 870 | ||
871 | // high 9bits | 871 | // high 9bits |
872 | original_pcr = program_clock_reference_extension; | 872 | original_pcr = program_clock_reference_extension; |
873 | - original_pcr = (original_pcr << 33) & 0x3fe00000000; | 873 | + original_pcr = (original_pcr << 33) & 0x3fe00000000LL; |
874 | // low 33bits | 874 | // low 33bits |
875 | original_pcr |= program_clock_reference_base; | 875 | original_pcr |= program_clock_reference_base; |
876 | } | 876 | } |
-
请 注册 或 登录 后发表评论