summaryrefslogtreecommitdiff
path: root/libavutil/bprint.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary libavutil/(avutil|common|internal).h inclusionsAndreas Rheinhardt2022-02-241-1/+2
| | | | | | | | | | Some of these were made possible by moving several common macros to libavutil/macros.h. While just at it, also improve the other headers a bit. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* all: Use av_memdup() where appropriateAndreas Rheinhardt2021-12-031-4/+2
| | | | | Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Remove unnecessary avassert.h inclusionsAndreas Rheinhardt2021-07-221-1/+0
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/{avstring,bprint}: add XML escaping from ffprobe to avutilStefano Sabatini2021-03-051-0/+29
| | | | | | | | | | Base escaping only escapes values required for base character data according to part 2.4 of XML, and if additional flags are added single and double quotes can additionally be escaped in order to handle single and double quoted attributes. Co-authored-by: Jan Ekström <jan.ekstrom@24i.com> Signed-off-by: Jan Ekström <jan.ekstrom@24i.com>
* Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'Derek Buitenhuis2016-05-111-76/+0
| | | | | | | | * commit 'd12b5b2f135aade4099f4b26b0fe678656158c13': build: Split test programs off into separate files Some conversions done by: James Almer <jamrial@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avutil/parsing: add '\r' as whitespaceMuhammad Faiz2016-05-061-1/+1
| | | | | | | for compatibility with platforms that treat it as newline Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* avutil & avdevice: remove av_bprint_fd_contents()Michael Niedermayer2014-07-151-24/+0
| | | | | | | | | | | | MSVC does not allow passing file pointers between libs This API can thus not work with MSVC and as it was very recently added and its it was in no release its removial should not cause any problems A better API will be implemented, but its not finished yet, this revert is to avoid potentially blocking the release Found-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/bprint:ædd io.h, try to fix msvc buildMichael Niedermayer2014-07-091-0/+3
| | | | | Suggested-by: jamrial Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* protect unistd.h with #if HAVE_UNISTD_H in code from recent ↵Michael Niedermayer2014-07-081-1/+5
| | | | | | | | av_bprint_fd_contents() patches Should fix build failure on MSVC Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/bprint: Add av_bprint_fd_contents()Andrey Utkin2014-07-071-0/+17
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fix various typosLou Logan2014-06-031-1/+1
| | | | | Signed-off-by: Lou Logan <lou@lrcd.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu/bprint: add append buffer functionLukasz Marek2013-08-301-0/+18
| | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com> Reveiwed-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* bprint: Include va_copy compatDerek Buitenhuis2013-08-101-0/+1
| | | | | | Fixes build with MSVC and ICL. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avutil/bprint: add av_vbprintf()Michael Niedermayer2013-08-101-0/+23
| | | | | Reviewed-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu: add escape APIStefano Sabatini2013-03-071-0/+45
| | | | | | | | The escape API will be useful to perform escaping programmatically, which is required when crafting argument strings, and will be used for context printing as well. This is based on the ffescape tool code, with a few extensions and fixes.
* lavu/bprint: implement av_bprint_strftime().Nicolas George2012-11-171-0/+53
|
* lavu/bprint: add av_bprint_get_buffer().Nicolas George2012-11-021-0/+9
| | | | | It is useful to use bprint to handle a growing buffer used with another API.
* bprint: Remove custom vsnprintfDerek Buitenhuis2012-09-151-19/+0
| | | | | | | | A proper implementation was introduced in ba537202801d71711f1ef9306a6248dd2d426fa0 for MSVC, and MinGW already has vsnprintf. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* FATE/bprint: Convert a VLA to a normal arrayDerek Buitenhuis2012-09-121-1/+5
| | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Reviewed-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* bprint: implement vsnprintf for win32.Nicolas George2012-06-141-0/+19
|
* bprint-test: avoid z modifier, mingw fails with itMichael Niedermayer2012-06-101-7/+7
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fate-bprint: try to workaround platform specific value.Michael Niedermayer2012-06-081-1/+1
| | | | | | this should fix some fate failures Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* bprint: add av_bprint_init_for_buffer().Nicolas George2012-06-071-0/+14
|
* lavu/bprint: add av_bprint_reset().Clément Bœsch2012-05-141-0/+8
|
* lavu: add av_bprintf and related.Nicolas George2012-03-211-0/+206