lists.ffmpeg.org
Sign In
Sign Up
Manage this list
Sign In
Sign Up
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
ffmpeg-cvslog
Thread
Start a new thread
Download
Threads by
month
----- 2026 -----
October
September
August
July
June
May
April
March
February
January
----- 2025 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2024 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2023 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2022 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2021 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2020 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2019 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2018 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2017 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2016 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2015 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2014 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2013 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2012 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2011 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2010 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2009 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2008 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2007 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2006 -----
December
November
October
September
August
July
June
May
April
March
February
January
----- 2005 -----
December
November
October
September
August
July
June
May
April
ffmpeg-cvslog@ffmpeg.org
December 2015
7 participants
1013 discussions
avformat/dump: Fix integer overflow in av_dump_format()
by git@videolan.org
01 Dec '15
01 Dec '15
ffmpeg | branch: master | Michael Niedermayer <michael(a)niedermayer.cc> | Tue Dec 1 12:40:32 2015 +0100| [8e7f4520226d2d9ad6a58ad6c32d1455a8b244b2] | committer: Michael Niedermayer avformat/dump: Fix integer overflow in av_dump_format() Fixes part of mozilla bug 1229167 Found-by: Tyson Smith Signed-off-by: Michael Niedermayer <michael(a)niedermayer.cc> >
http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8e7f4520226d2d9ad…
--- libavformat/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dump.c b/libavformat/dump.c index 7ed7665..eaf87fe 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -496,7 +496,7 @@ void av_dump_format(AVFormatContext *ic, int index, av_log(NULL, AV_LOG_INFO, " Duration: "); if (ic->duration != AV_NOPTS_VALUE) { int hours, mins, secs, us; - int64_t duration = ic->duration + 5000; + int64_t duration = ic->duration + (ic->duration <= INT64_MAX - 5000 ? 5000 : 0); secs = duration / AV_TIME_BASE; us = duration % AV_TIME_BASE; mins = secs / 60;
1
0
0
0
avcodec/ac3: always use hardcoded tables
by git@videolan.org
01 Dec '15
01 Dec '15
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde(a)gmail.com> | Sun Nov 29 20:15:27 2015 -0500| [7b11eead1b4e08728561595e6b610cf8fe2b7122] | committer: Ganesh Ajjanagadde avcodec/ac3: always use hardcoded tables The table in question is a 253 byte one. In fact, it turns out that dynamic generation of the table results in an increased binary size. Code compiled with GCC 5.2.0, x86-64 (size in bytes), before and after patch: old: 62321064 libavcodec/libavcodec.so.57 new: 62320536 libavcodec/libavcodec.so.57 Thus, it always make sense to statically allocate this. Tested with FATE with/without --enable-hardcoded-tables. Reviewed-by: wm4 <nfxjfg(a)googlemail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde(a)gmail.com> >
http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7b11eead1b4e08728…
--- libavcodec/ac3.c | 24 ------------------------ libavcodec/ac3dec.c | 1 - libavcodec/ac3enc.c | 2 -- libavcodec/ac3tab.h | 8 +------- 4 files changed, 1 insertion(+), 34 deletions(-) diff --git a/libavcodec/ac3.c b/libavcodec/ac3.c index b54315d..1d4eaa5 100644 --- a/libavcodec/ac3.c +++ b/libavcodec/ac3.c @@ -39,8 +39,6 @@ const uint8_t ff_ac3_band_start_tab[AC3_CRITICAL_BANDS+1] = { 79, 85, 97, 109, 121, 133, 157, 181, 205, 229, 253 }; -#if CONFIG_HARDCODED_TABLES - /** * Map each frequency coefficient bin to the critical band that contains it. */ @@ -69,10 +67,6 @@ const uint8_t ff_ac3_bin_to_band_tab[253] = { 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49 }; -#else /* CONFIG_HARDCODED_TABLES */ -uint8_t ff_ac3_bin_to_band_tab[253]; -#endif - static inline int calc_lowcomp1(int a, int b0, int b1, int c) { if ((b0 + 256) == b1) { @@ -214,21 +208,3 @@ int ff_ac3_bit_alloc_calc_mask(AC3BitAllocParameters *s, int16_t *band_psd, } return 0; } - -/** - * Initialize some tables. - * note: This function must remain thread safe because it is called by the - * AVParser init code. - */ -av_cold void ff_ac3_common_init(void) -{ -#if !CONFIG_HARDCODED_TABLES - /* compute ff_ac3_bin_to_band_tab from ff_ac3_band_start_tab */ - int bin = 0, band; - for (band = 0; band < AC3_CRITICAL_BANDS; band++) { - int band_end = ff_ac3_band_start_tab[band+1]; - while (bin < band_end) - ff_ac3_bin_to_band_tab[bin++] = band; - } -#endif /* !CONFIG_HARDCODED_TABLES */ -} diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index ad91405..efc58e5 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -185,7 +185,6 @@ static av_cold int ac3_decode_init(AVCodecContext *avctx) s->avctx = avctx; - ff_ac3_common_init(); ac3_tables_init(); ff_mdct_init(&s->imdct_256, 8, 1, 1.0); ff_mdct_init(&s->imdct_512, 9, 1, 1.0); diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index c8a0caa..636ca72 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -2431,8 +2431,6 @@ av_cold int ff_ac3_encode_init(AVCodecContext *avctx) s->eac3 = avctx->codec_id == AV_CODEC_ID_EAC3; - ff_ac3_common_init(); - ret = validate_options(s); if (ret) return ret; diff --git a/libavcodec/ac3tab.h b/libavcodec/ac3tab.h index 74cbd9e..f529fc8 100644 --- a/libavcodec/ac3tab.h +++ b/libavcodec/ac3tab.h @@ -27,12 +27,6 @@ #include "libavutil/internal.h" #include "ac3.h" -#if CONFIG_HARDCODED_TABLES -# define HCONST const -#else -# define HCONST -#endif - extern const uint16_t ff_ac3_frame_size_tab[38][3]; extern const uint8_t ff_ac3_channels_tab[8]; extern av_export const uint16_t avpriv_ac3_channel_layout_tab[8]; @@ -54,7 +48,7 @@ extern const int16_t ff_ac3_floor_tab[8]; extern const uint16_t ff_ac3_fast_gain_tab[8]; extern const uint16_t ff_eac3_default_chmap[8]; extern const uint8_t ff_ac3_band_start_tab[AC3_CRITICAL_BANDS+1]; -extern HCONST uint8_t ff_ac3_bin_to_band_tab[253]; +extern const uint8_t ff_ac3_bin_to_band_tab[253]; /** Custom channel map locations bitmask * Other channels described in documentation:
1
0
0
0
avfilter/af_compand: use hypot()
by git@videolan.org
01 Dec '15
01 Dec '15
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde(a)gmail.com> | Sun Nov 22 11:39:40 2015 -0500| [5a41a5a4f57dc30df3795f52634ca69a18f33226] | committer: Ganesh Ajjanagadde avfilter/af_compand: use hypot() Reviewed-by: Paul B Mahol <onemda(a)gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde(a)gmail.com> >
http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5a41a5a4f57dc30df…
--- libavfilter/af_compand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_compand.c b/libavfilter/af_compand.c index 3848d67..a64778e 100644 --- a/libavfilter/af_compand.c +++ b/libavfilter/af_compand.c @@ -467,13 +467,13 @@ static int config_output(AVFilterLink *outlink) L(2).b = (L(0).y - L(2).y) / (L(0).x - L(2).x); theta = atan2(L(2).y - L(4).y, L(2).x - L(4).x); - len = sqrt(pow(L(2).x - L(4).x, 2.) + pow(L(2).y - L(4).y, 2.)); + len = hypot(L(2).x - L(4).x, L(2).y - L(4).y); r = FFMIN(radius, len); L(3).x = L(2).x - r * cos(theta); L(3).y = L(2).y - r * sin(theta); theta = atan2(L(0).y - L(2).y, L(0).x - L(2).x); - len = sqrt(pow(L(0).x - L(2).x, 2.) + pow(L(0).y - L(2).y, 2.)); + len = hypot(L(0).x - L(2).x, L(0).y - L(2).y); r = FFMIN(radius, len / 2); x = L(2).x + r * cos(theta); y = L(2).y + r * sin(theta);
1
0
0
0
← Newer
1
...
99
100
101
102
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Results per page:
10
25
50
100
200