- 12 Mar, 2020 2 commits
-
-
Steven Liu authored
make the options same as segments for the http put method Signed-off-by:
Steven Liu <liuqi05@kuaishou.com>
-
Hongcheng Zhong authored
This patch fixes Bug #8469 If x264 baseline profile is used with other profiles, start_pts will be initialized to audio stream's first pts, while the duration is calculated based on video stream's pts. In this patch the start_pts is initialized with the correct stream's first pts. Signed-off-by:
Hongcheng Zhong <sj.hc_Zhong@sjtu.edu.cn> Reviewed-by:
Steven Liu <liuqi05@kuaishou.com>
-
- 05 Feb, 2020 1 commit
-
-
Marton Balint authored
The default is not to write SDT and PAT periodically, only in the beginning of every segment. After this patch the user might override this if needed. Signed-off-by:
Marton Balint <cus@passwd.hu>
-
- 31 Jan, 2020 1 commit
-
-
Marton Balint authored
Was broken since cdbf8847. Signed-off-by:
Marton Balint <cus@passwd.hu>
-
- 20 Jan, 2020 3 commits
-
-
Bela Bodecs authored
Currently when hls_enc is active and there are multiple variant stream outputs, default key file url construction does not work, because it is based on the FormatContext' url field. But in case of multiple variant streams, it contains the variant m3u8 output playlist url that contains the %v placeholder. So the result key file url will hold the %v placeholder causing run time error message about "could not write the key file". This patch correct this behaviour, and use the master playlist url for constructing the output key file url when master playlist is vailable. Signed-off-by:
Bela Bodecs <bodecsb@vivanet.hu>
-
Bela Bodecs authored
When program_date_time flag is present, in m3u8 playlist file each segment has a corresponding EXT-X-PROGRAM-DATE-TIME value. The intial program-date-time value is the actual current time at init and each new segment increments this value by its duration. When append_list flags is also present, existing playlist parsing by hls_append_segment treats existing segments as new segments regarding the program-date-time calculation. But it should not do that, because this way all real the new segments' EXT-X-PROGRAM-DATE-TIME values will be shifted erroneously by the sum duration of existing segments. Instead it should have decremented the initial program-date-time value by its duration. This would ensure that the first new segment's program-date-time value had the current time as it is expected. This patch corrects this behaviour and prevent existing segments to increment the value of initial_prog_date_time variable but decrements it. Reviewed-by:
Steven Liu <lq@onvideo.cn> Signed-off-by:
Bela Bodecs <bodecsb@vivanet.hu>
-
Steven Liu authored
fix ticket: 8461 there is no problem before commit 75aea52aReviewed-by:
Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by:
Steven Liu <lq@chinaffmpeg.org>
-
- 07 Jan, 2020 1 commit
-
-
Marton Balint authored
avio_close_dyn_buf() also does avio_flush(). Signed-off-by:
Marton Balint <cus@passwd.hu>
-
- 01 Jan, 2020 1 commit
-
-
Marton Balint authored
Simplifies code and avoids memory leaks. Signed-off-by:
Marton Balint <cus@passwd.hu>
-
- 23 Dec, 2019 9 commits
-
-
Andreas Rheinhardt authored
Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by:
Steven Liu <lq@onvideo.cn>
-
Andreas Rheinhardt authored
When a parameter like e.g. language is contained more than once in the part of var_stream_map pertaining to a single VariantStream, the later one just overwrites the pointer to the earlier one, leading to a memleak. This commit changes this by handling the situation gracefully: The earlier string is silently freed first, so that the last one wins. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by:
Steven Liu <lq@onvideo.cn>
-
Andreas Rheinhardt authored
"If an error is detected, localtime_r() shall return a null pointer and set errno to indicate the error." Yet in case this happened in hls_init(), AVERROR(ENOMEM) has been returned. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by:
Steven Liu <lq@onvideo.cn>
-
Andreas Rheinhardt authored
The hls muxer allocates an array of VariantStreams, a structure that contains pointers to objects that need to be freed on their own. This means that the number of allocated VariantStreams needs to be correct when they are freed; yet the number of VariantStreams is set in update_variant_stream_info() resp. parse_variant_stream_mapstring() before the allocation has been checked for success, so that upon error an attempt would be made to free the objects whose pointers are positioned at position NULL (the location of VariantStreams) + offsetof(VariantStream, the corresponding pointer). Furthermore d1fe1344 added another possibility for the first function to leave an inconsistent state behind: If an allocation of one of the objects referenced by the VariantStream fails, the VariantStream will be freed, but the number of allocated VariantStreams isn't reset, leading to the same problem as above. (This was done in the mistaken belief that the VariantStreams array would leak otherwise.) Essentially the same also happens for the number of cc-streams. It has been fixed, too. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by:
Steven Liu <lq@onvideo.cn>
-
Andreas Rheinhardt authored
Under certain circumstances hls_write_packet() would add options to an AVDictionary. Said dictionary was never explicitly freed, instead it was presumed that these options would be consumed when opening a new IO-context. This left several possibilities for memleaks: a) When no new IO-context would be opened at all. This is possible when using both the flags temp_file and single_file together with a file output. b) When an error happens before one actually tries to open the new IO-context. c) When the new IO-context does not consume all options. All three have been fixed; furthermore, the AVDictionary has been put into a smaller scope (namely the only part of hls_write_packet() where it is actually used). Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by:
Steven Liu <lq@onvideo.cn>
-
Andreas Rheinhardt authored
hls_mux_init() currently leaks an AVDictionary if opening a dynamic buffer fails or if avformat_init_output fails. This has been fixed by moving the initialization resp. the freeing of the dictionary around: In the former case to a place after opening the dynamic buffer, in the latter to a place before the check for initialization failure so that it is done unconditionally. Furthermore, the dictionary is now only copied and freed if the options in it are actually used (namely when in SEGMENT_TYPE_FMP4 mode). Finally, a similar situation in hls_start() has been fixed, too. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by:
Steven Liu <lq@onvideo.cn>
-
Andreas Rheinhardt authored
hls_init() would allocate a buffer, although it is only needed in one of two branches that follow. This commit moves the allocation to the branch that actually needs the buffer. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by:
Steven Liu <lq@onvideo.cn>
-
Andreas Rheinhardt authored
Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by:
Steven Liu <lq@onvideo.cn>
-
Andreas Rheinhardt authored
Before ed897633, the hls muxer would free its child AVFormatContexts and reset the pointer to these contexts to NULL immediately afterwards; ed897633 moved the former to later (into a separate function), but kept the resetting, ensuring that the child context leaks. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Reviewed-by:
Steven Liu <lq@onvideo.cn>
-
- 11 Dec, 2019 1 commit
-
-
Steven Liu authored
Signed-off-by:
Steven Liu <lq@chinaffmpeg.org>
-
- 10 Dec, 2019 1 commit
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 26 Nov, 2019 1 commit
-
-
Steven Liu authored
fix ticket: 8388 Reviewed-by:
Jan Ekström <jeebjp@gmail.com> Signed-off-by:
Steven Liu <lq@chinaffmpeg.org>
-
- 13 Nov, 2019 1 commit
-
-
Limin Wang authored
avformat/hlsenc: free the original malloc pointer to avoid error when system function used in the following patch Signed-off-by:
Limin Wang <lance.lmwang@gmail.com>
-
- 31 Oct, 2019 1 commit
-
-
Limin Wang authored
Reviewed-by:
Liu Steven <lq@chinaffmpeg.org> Signed-off-by:
Limin Wang <lance.lmwang@gmail.com>
-
- 28 Oct, 2019 1 commit
-
-
Steven Liu authored
Signed-off-by:
Steven Liu <lq@chinaffmpeg.org>
-
- 19 Oct, 2019 1 commit
-
-
Steven Liu authored
Signed-off-by:
Steven Liu <lq@chinaffmpeg.org>
-
- 18 Oct, 2019 1 commit
-
-
Jun Zhao authored
fix memory leak Reviewed-by:
Steven Liu <lq@chinaffmpeg.org> Signed-off-by:
Jun Zhao <barryjzhao@tencent.com>
-
- 08 Oct, 2019 4 commits
-
-
Limin Wang authored
Signed-off-by:
Limin Wang <lance.lmwang@gmail.com>
-
Limin Wang authored
Signed-off-by:
Limin Wang <lance.lmwang@gmail.com>
-
Limin Wang authored
Reviewed-by:
Steven Liu <lq@chinaffmpeg.org> Signed-off-by:
Limin Wang <lance.lmwang@gmail.com>
-
Steven Liu authored
Signed-off-by:
Steven Liu <lq@chinaffmpeg.org>
-
- 14 Sep, 2019 3 commits
-
-
Steven Liu authored
change vs->avf to oc
-
Andreas Rheinhardt authored
This commit fixes a memleak in the hls muxer when one uses a single file as output. It has been forgotten to free the temporary buffers used to write the packets so that the size of the leaks basically amounts to the size of the output file. This commit adds the necessary free. Reviewed-by:
Steven Liu <lq@onvideo.cn> Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-
Daniel Oberhoff authored
-
- 12 Sep, 2019 3 commits
-
-
Steven Liu authored
Found-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by:
Steven Liu <lq@chinaffmpeg.org>
-
Steven Liu authored
Signed-off-by:
Steven Liu <lq@chinaffmpeg.org>
-
Steven Liu authored
hlsenc has been merge fmp4 and mpegts workflow before so it can merge m3u8 list AVIOContext now. Signed-off-by:
Steven Liu <lq@chinaffmpeg.org>
-
- 06 Sep, 2019 4 commits
-
-
Steven Liu authored
-
Steven Liu authored
Signed-off-by:
Steven Liu <lq@chinaffmpeg.org>
-
Steven Liu authored
Signed-off-by:
Steven Liu <lq@chinaffmpeg.org>
-
Steven Liu authored
fix ticket: 7975 Tested-by:
Ian Klassen <ian@virtualfunc.com> Suggested-by:
Ian Klassen <ian@virtualfunc.com> Signed-off-by:
Steven Liu <lq@chinaffmpeg.org>
-