Re: [FFmpeg-devel] [Patch] Download dash content with byte range info

2017-11-15 Thread Colin NG
Subject: Re: [FFmpeg-devel] [Patch] Download dash content with byte range info 2017-11-15 10:26 GMT+08:00 Colin NG <colin...@hotmail.com>: > Please ignore the previous "patch" email. > > > > > ___ > ffmpeg-de

[FFmpeg-devel] [Patch] Download dash content with byte range info

2017-11-14 Thread Colin NG
diff --git a/doc/examples/Makefile b/doc/examples/Makefile index 58afd71..bff4af6 100644 --- a/doc/examples/Makefile +++ b/doc/examples/Makefile @@ -1,3 +1,16 @@ +# use pkg-config for getting CFLAGS and LDLIBS +FFMPEG_LIBS=libavdevice\ +libavformat

[FFmpeg-devel] [Patch] Fix for ticket 6658 (Dash demuxer segfault)

2017-11-14 Thread Colin NG
- Add a function to handle the base URL Processing described in section 5.6.5 of IEC_23009-1. - Fix for downloading dash content with byte range info diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 0e3afd2..0be8a49 100644 --- a/libavformat/dashdec.c +++

[FFmpeg-devel] [Patch] Download dash content with byte range info

2017-11-14 Thread Colin NG
Please ignore the previous "patch" email. diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 0e3afd2..68196e9 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -522,6 +522,22 @@ static enum AVMediaType get_content_type(xmlNodePtr node) return type; }

[FFmpeg-devel] [PATCH] Download dash content with byte range info

2017-11-22 Thread Colin NG
--- libavformat/dashdec.c | 38 -- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 0e3afd2..3798649 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -522,6 +522,24 @@ static

[FFmpeg-devel] Fix for ticket #6764

2017-11-22 Thread Colin NG
Add NULL pointer check for incoming audio data. diff --git a/libavcodec/opus_pvq.c b/libavcodec/opus_pvq.c index f98b85d..f1dbc5d 100644 --- a/libavcodec/opus_pvq.c +++ b/libavcodec/opus_pvq.c @@ -504,6 +504,9 @@ static av_always_inline uint32_t quant_band_template(CeltPVQ *pvq, CeltFrame *f,

[FFmpeg-devel] [PATCH] libavcodec/opus: Add NULL pointer check for incoming data; avoid segfault

2017-11-22 Thread Colin NG
--- Fix for ticket 7674 libavcodec/opus_pvq.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/libavcodec/opus_pvq.c b/libavcodec/opus_pvq.c index f98b85d..02ccd69 100644 --- a/libavcodec/opus_pvq.c +++ b/libavcodec/opus_pvq.c @@ -504,6 +504,9 @@ static

[FFmpeg-devel] [Patch] Fix for ticket 6658 (Dash demuxer segfault)

2017-11-22 Thread Colin NG
Clean up coding style. diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 3798649..7e7ae52 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -148,6 +148,11 @@ static uint64_t get_current_time_in_sec(void) return av_gettime() / 100; } +static char

[FFmpeg-devel] [PATCH] Fix for ticket 6658 (Dash demuxer segfault)

2017-11-27 Thread Colin NG
--- libavformat/dashdec.c | 95 --- 1 file changed, 82 insertions(+), 13 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 3798649..5d5970e 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -148,6 +148,11

Re: [FFmpeg-devel] [PATCH] libavcodec/opus: Add NULL pointer check for incoming data; avoid segfault

2017-11-24 Thread Colin NG
lt;atomnu...@gmail.com> Sent: November 22, 2017 8:02 PM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] libavcodec/opus: Add NULL pointer check for incoming data; avoid segfault On 23 November 2017 at 00:53, Colin NG <colin...@hotmail.com> wrote: > ---

Re: [FFmpeg-devel] [PATCH] Download dash content with byte range info

2017-11-17 Thread Colin NG
evel] [PATCH] Download dash content with byte range info On Thu, Nov 16, 2017 at 08:33:35PM +0000, Colin NG wrote: > --- > libavformat/dashdec.c | 32 +--- > 1 file changed, 25 insertions(+), 7 deletions(-) > > diff --git a/libavformat/dashdec.c b/libavforma

[FFmpeg-devel] [PATCH] Download dash content with byte range info

2017-11-16 Thread Colin NG
--- libavformat/dashdec.c | 32 +--- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 0e3afd2..33255f2 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -522,6 +522,22 @@ static enum

Re: [FFmpeg-devel] [Patch] Fix for ticket 6658 (Dash demuxer segfault)

2017-11-16 Thread Colin NG
Excluded the fix for byte range issue and update some coding style issues. From: Colin NG <colin...@hotmail.com> Sent: November 15, 2017 10:58 AM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [Patch] Fix for ticket 6658 (Dash d

Re: [FFmpeg-devel] [Patch] Download dash content with byte range info

2017-11-15 Thread Colin NG
Re: [FFmpeg-devel] [Patch] Download dash content with byte range info 2017-11-15 22:00 GMT+01:00 Colin NG <colin...@hotmail.com>: > This patch is partial fix for ticket 6658 (Dash demuxer segfault). > +static struct fragment * get_Fragment(char *range) { > +struct fragment * seg

Re: [FFmpeg-devel] [Patch] Fix for ticket 6658 (Dash demuxer segfault)

2017-11-15 Thread Colin NG
mber 15, 2017 10:54 AM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [Patch] Fix for ticket 6658 (Dash demuxer segfault) 2017-11-15 3:54 GMT+01:00 Colin NG <colin...@hotmail.com>: > - Add a function to handle the base URL Processing described in section 5.6

Re: [FFmpeg-devel] [Patch] Fix for ticket 6658 (Dash demuxer segfault)

2017-11-17 Thread Colin NG
ticket 6658 (Dash demuxer segfault) 2017-11-17 1:55 GMT+01:00 Colin NG <colin...@hotmail.com>: > Excluded the fix for byte range issue and update some coding style issues. > +if (pb) av_freep(pb); The if() should be unnecessary. Please avoid adding empty lines in unrelated par

[FFmpeg-devel] [PATCH] Download dash content with byte range info

2017-11-17 Thread Colin NG
--- libavformat/dashdec.c | 39 +-- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 0e3afd2..671ae9d 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -522,6 +522,25 @@ static

[FFmpeg-devel] [Patch] Fix for ticket 6658 (Dash demuxer segfault)

2017-11-09 Thread Colin NG
- Add a function to handle the base URL Processing described in section 5.6.5 of IEC_23009-1. - Fix for downloading content with byte range selection diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index f63f1ff..19ef6f8 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c

[FFmpeg-devel] [PATCH] libavcodec/dvbsubdec: Fix for ticket 6796 (ffprobe show_frames ts dvbsubs infinite loop)

2017-12-03 Thread Colin NG
--- libavcodec/dvbsubdec.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index a657b1d..29997a2 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsubdec.c @@ -1596,7 +1596,7 @@ static int

[FFmpeg-devel] [PATCH] fftools/ffprobe: Fix for ticket 6796 (ffprobe show_frames ts dvbsubs infinite loop)

2017-12-03 Thread Colin NG
--- fftools/ffprobe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 0e7a771..6ddd81e 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2280,6 +2280,7 @@ static av_always_inline int process_frame(WriterContext *w, break;

[FFmpeg-devel] [PATCH] libavformat/dashdec: Fix for ticket 6658 (Dash demuxer segfault)

2017-12-03 Thread Colin NG
--- libavformat/dashdec.c | 112 -- 1 file changed, 99 insertions(+), 13 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 3798649..d04bec0 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -148,6 +148,11

Re: [FFmpeg-devel] [PATCH] libavformat/dashdec: Fix for ticket 6658 (Dash demuxer segfault)

2017-12-05 Thread Colin NG
ticket 6658 (Dash demuxer segfault) 2017-12-04 12:28 GMT+08:00 Colin NG <colin...@hotmail.com>: > --- > libavformat/dashdec.c | 112 > -- > 1 file changed, 99 insertions(+), 13 deletions(-) > > diff --git a/libavformat/dashd

[FFmpeg-devel] [PATCH] libavformat/dashdec: Fix for ticket 6658 (Dash demuxer segfault) - Add function 'resolve_content_path' to propagate the baseURL from upper level nodes. * if no baseURL is availa

2017-12-05 Thread Colin NG
--- libavformat/dashdec.c | 111 -- 1 file changed, 98 insertions(+), 13 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 3798649..6e35e91 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -148,6 +148,11

[FFmpeg-devel] [PATCH] Fix for ticket 6796 (ffprobe show_frames ts dvbsubs infinate loop)

2017-12-01 Thread Colin NG
--- fftools/ffprobe.c | 5 + libavcodec/decode.c | 5 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 0e7a771..20b64ef 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2276,10 +2276,14 @@ static av_always_inline int

[FFmpeg-devel] [PATCH] Fix for ticket 6796 (ffprobe show_frames ts dvbsubs infinate loop)

2017-12-01 Thread Colin NG
--- fftools/ffprobe.c | 2 ++ libavcodec/dvbsubdec.c | 10 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 0e7a771..6ddd81e 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2280,6 +2280,7 @@ static

[FFmpeg-devel] [PATCH 2/2] libavformat/dashdec: Fix for ticket 7149 (Segfault when decoding dash streams)

2018-04-30 Thread Colin NG
- simplify the code to check common init section --- libavformat/dashdec.c | 48 +++- 1 file changed, 11 insertions(+), 37 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index c6f350d..acaa1bf 100644 --- a/libavformat/dashdec.c

[FFmpeg-devel] [PATCH 1/2] libavformat/dashdec: Fix for ticket 7149 (Segfault when decoding dash streams)

2018-04-30 Thread Colin NG
- Add NULL pointer check for init_section --- libavformat/dashdec.c | 30 +++--- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 42202e0..c6f350d 100644 --- a/libavformat/dashdec.c +++

[FFmpeg-devel] [PATCH] libavformat/dashdec: Fix for ticket 6658 (Dash demuxer segfault) - Add function 'resolve_content_path' to propagate the baseURL from upper level nodes. * if no baseURL is availa

2017-12-23 Thread Colin NG
--- libavformat/dashdec.c | 110 -- 1 file changed, 97 insertions(+), 13 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 3798649..6574e56 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -148,6 +148,11

Re: [FFmpeg-devel] [PATCH] libavformat/dashdec: Fix for ticket 6856 (filename limited to 1024)

2018-01-16 Thread Colin NG
x for ticket 6856 (filename limited to 1024) On Fri, Jan 12, 2018 at 10:50:07PM +0000, Colin NG wrote: > --- > libavformat/dashdec.c | 87 > +-- > 1 file changed, 56 insertions(+), 31 deletions(-) applying: libavformat/dashdec: Fix f

[FFmpeg-devel] [PATCH 1/3] libavformat/dashdec.c: Download dash content with byte range info

2018-01-16 Thread Colin NG
--- libavformat/dashdec.c | 36 ++-- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 2492f1d..67a92d6 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -550,6 +550,23 @@ static enum

[FFmpeg-devel] [PATCH 3/3] libavformat/dashdec: Fix for ticket 6856 (filename limited to 1024)

2018-01-16 Thread Colin NG
--- libavformat/dashdec.c | 88 +-- 1 file changed, 58 insertions(+), 30 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 1d520d4..9d5986d 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -147,6 +147,7

[FFmpeg-devel] [PATCH 2/3] libavformat/dashdec: Fix for ticket 6658 (Dash demuxer segfault)

2018-01-16 Thread Colin NG
- Add function 'resolve_content_path' to propagate the baseURL from upper level nodes. * if no baseURL is available, the path of mpd file will be set as the baseURL. - Remove checking for newly established connection. - Establish the communication protocol in each connection rather than applying

Re: [FFmpeg-devel] [PATCH 2/3] libavformat/dashdec: Fix for ticket 6658 (Dash demuxer segfault)

2018-01-17 Thread Colin NG
Believe the comment is related to the 3rd patch. The update version is attached. From: 刘歧 <l...@chinaffmpeg.org> Sent: January 16, 2018 10:39 PM To: FFmpeg development discussions and patches Cc: 刘歧; Colin NG Subject: Re: [FFmpeg-devel] [PATCH 2/3] libav

[FFmpeg-devel] [PATCH] libavformat/dashdec: Fix for ticket 6856 (filename limited to 1024)

2018-01-12 Thread Colin NG
--- libavformat/dashdec.c | 87 +-- 1 file changed, 56 insertions(+), 31 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 5345f91..7316213 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -141,6 +141,7

[FFmpeg-devel] [PATCH] libavformat/dashdec: Fix for ticket 6658 (Dash demuxer segfault)

2017-12-25 Thread Colin NG
- Add function 'resolve_content_path' to propagate the baseURL from upper level nodes. * if no baseURL is available, the path of mpd file will be set as the baseURL. - Remove checking for newly established connection. - Establish the communication protocol in each connection rather than applying

[FFmpeg-devel] [PATCH] libavformat/dashdec: Fix for ticket 6658 (Dash demuxer segfault) - Add function 'resolve_content_path' to propagate the baseURL from upper level nodes. * if no baseURL is availa

2017-12-20 Thread Colin NG
--- libavformat/dashdec.c | 116 -- 1 file changed, 103 insertions(+), 13 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 3798649..cdb9f67 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -148,6

[FFmpeg-devel] [PATCH] libavformat/dashdec: Fix for ticket 6658 (Dash demuxer segfault)

2018-01-03 Thread Colin NG
- Add function 'resolve_content_path' to propagate the baseURL from upper level nodes. * if no baseURL is available, the path of mpd file will be set as the baseURL. - Remove checking for newly established connection. - Establish the communication protocol in each connection rather than applying

Re: [FFmpeg-devel] [PATCH]lavf/dashdec: Do not copy url on init copy

2018-08-03 Thread Colin NG
How about having different memory location for init_section of each presentation? rep_dest->init_section = (struct fragment *) av_mallocz(sizeof(struct fragment)); From: ffmpeg-devel on behalf of Carl Eugen Hoyos Sent: July 31, 2018 6:06 PM To: FFmpeg

[FFmpeg-devel] [PATCH] libavformat/dashdec: Fix for Bug #7338

2018-08-07 Thread Colin NG
--- libavformat/dashdec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 09b06ef..fa784f1 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -1040,7 +1040,6 @@ end: xmlFree(rep_bandwidth_val);

[FFmpeg-devel] [PATCH] libavformat/dashdec: Fix for un-free memory - bug # 7338

2018-08-08 Thread Colin NG
--- libavformat/dashdec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 09b06ef..5730252 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -1879,7 +1879,6 @@ static int is_common_init_section_exist(struct representation

[FFmpeg-devel] [PATCH] libavformat/dashdec: Add a re-entrance check point after an interrupt operation

2018-08-08 Thread Colin NG
--- libavformat/dashdec.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 5730252..310dc20 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -1764,6 +1764,12 @@ static int reopen_demux_for_component(AVFormatContext *s,

Re: [FFmpeg-devel] [PATCH] lavfi/deshake: fix deshake crash issue.

2018-09-21 Thread Colin NG
1) The crash is caused by accessing un-allocated memory area. 2) You can't compute the contrast outside of search window (by default, rx=ry=16). From: ffmpeg-devel on behalf of Michael Niedermayer Sent: September 21, 2018 3:24 PM To: FFmpeg development

[FFmpeg-devel] [PATCH] libavcodec/v4l2_m2m_enc:free v4l2 encode session properly when initialiZzation fails Fix ticket 8285 bug

2019-10-21 Thread Colin NG
--- libavcodec/v4l2_m2m_enc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/v4l2_m2m_enc.c b/libavcodec/v4l2_m2m_enc.c index 474e6bef89..17fc3d30cf 100644 --- a/libavcodec/v4l2_m2m_enc.c +++ b/libavcodec/v4l2_m2m_enc.c @@ -312,6 +312,7 @@ static av_cold int