summaryrefslogtreecommitdiff
path: root/libavformat/format.c
Commit message (Collapse)AuthorAgeFilesLines
* avformat/avformat: Remove AVOutputFormat.data_codecAndreas Rheinhardt2023-02-091-2/+0
| | | | | | | No AVOutputFormat has this set. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avformat/format: Also search for image2-codecs for image2pipeAndreas Rheinhardt2022-04-281-1/+1
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* configure: Use a separate config_components.h header for $ALL_COMPONENTSMartin Storsjö2022-03-161-0/+2
| | | | | | | | This avoids unnecessary rebuilds of most source files if only the list of enabled components has changed, but not the other properties of the build, set in config.h. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: add a flag for experimental (de)muxersAnton Khirnov2022-01-031-0/+2
|
* avformat/format: Improve const-correctnessAndreas Rheinhardt2021-10-071-3/+3
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avformat: Constify the API wrt AV(In|Out)putFormatAndreas Rheinhardt2021-04-271-16/+17
| | | | | | | Also constify AVProbeData. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* lavf: Constify AVProbeData* in av_probe_input_format().Carl Eugen Hoyos2019-03-201-3/+3
|
* lavf: Constify AVInputFormat pointer.Carl Eugen Hoyos2019-03-201-8/+8
|
* lavf: Constify AVOutputFormat pointer.Carl Eugen Hoyos2019-03-201-3/+3
|
* lavf/format: Remove the dead code in av_probe_input_buffer2.Jun Zhao2018-05-061-8/+0
| | | | | | Remove the dead code in av_probe_input_buffer2 Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* lavf/format: use const AVInputFormat for iterationJosh de Kock2018-04-021-5/+5
| | | | Signed-off-by: Josh de Kock <josh@itanimul.li>
* Revert "avformat/format: temporarily use old next api"Josh de Kock2018-04-021-15/+4
| | | | | | | | | This reverts commit 909e00ae816df9b6a05b1c4d0cafb794d4d0ca28. There is no need to use the old API anymore as the new API now behaves in the same way (treating devices as formats when loaded). Signed-off-by: Josh de Kock <josh@itanimul.li>
* Revert "lavd: add new API for iterating input and output devices"Josh de Kock2018-03-311-8/+0
| | | | | | | | | | This reverts commit 0fd475704e871ef3a535947596a012894bae3cbd. Revert "lavd: fix iterating of input and output devices" This reverts commit ce1d77a5e7cebce11074bf6f9e38ad6da37338ff. Signed-off-by: Josh de Kock <josh@itanimul.li>
* avformat/format: temporarily use old next apiMuhammad Faiz2018-02-101-1/+12
| | | | | | Should fix https://ffmpeg.org/pipermail/ffmpeg-devel/2018-February/225066.html Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* lavd: add new API for iterating input and output devicesJosh de Kock2018-02-061-0/+8
| | | | | This also adds an avpriv function to register devices in libavformat
* lavf: add new API for iterating muxers and demuxersJosh de Kock2018-02-061-62/+6
|
* avformat: use mutexes instead of atomics in av_register_{input,output}_format()James Almer2018-01-051-11/+23
| | | | | Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/format: Fix registering a format more than once and related racesMichael Niedermayer2016-06-251-6/+10
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/format: Print debug info when probe score is increased due to mime typeMichael Niedermayer2016-06-051-2/+6
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/format: Weight the filename extension higher if there is nearly no ↵Michael Niedermayer2016-01-301-3/+15
| | | | | | | | | data after an ID3 available Fixes Ticket5205 Based-on-patch-by: Carl Eugen Hoyos Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/format: Replace nodat by enumMichael Niedermayer2016-01-301-7/+12
| | | | | | This makes the code much more readable Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/format: silence -Wdiscarded-qualifiersGanesh Ajjanagadde2015-09-201-1/+1
| | | | | | | | | lpd.buf is non-const and discards the const qualifier of zerobuffer. This fixes -Wdiscarded-qualifiers observed with a variety of compilers, including GCC 5.2. Note that this does not change the type of zerobuffer, and merely makes the intent explicit. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Revert "avformat/format: silence -Wdiscarded-qualifiers"Timothy Gu2015-09-161-1/+1
| | | | | | | | | | This reverts commit 27cbe4588aeaa3272f16e395bc2a337e1e43e2b6. See https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2015-September/179002.html Requested-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Timothy Gu <timothygu99@gmail.com>
* avformat/format: silence -Wdiscarded-qualifiersGanesh Ajjanagadde2015-09-161-1/+1
| | | | | | | lpd.buf is non-const and discards the const qualifier of zerobuffer. This fixes -Wdiscarded-qualifiers observed with GCC 5.2. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* avformat: fix style after recent commitsClément Bœsch2015-09-141-3/+3
|
* avformat/format: Remove parameters from mime type before comparission for ↵Alex Agranovsky2015-09-121-0/+5
| | | | | | probing Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/format: Add generic trace av_log in av_probe_input_format3()Michael Niedermayer2015-04-251-0/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat: Improve data streams/codec supportAnshul Maheshwari2015-01-161-0/+2
| | | | | | | This adds data codec/stream handling where previously there was only audio/video/subtitles Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/format: Use av_match_name() instead of list in av_match_ext()Michael Niedermayer2014-10-231-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/format: move mime_type_opt declaration to where its usedMichael Niedermayer2014-10-101-2/+1
| | | | | | also remove a related dead store Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'b15b06ebf582ae81e47d236524c9ad6e10c8a0a7'Michael Niedermayer2014-10-081-3/+7
|\ | | | | | | | | | | | | | | | | | | * commit 'b15b06ebf582ae81e47d236524c9ad6e10c8a0a7': avformat: use const char* instead of uint8_t* for AVProbeData.mime_type Conflicts: libavformat/format.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avformat: use const char* instead of uint8_t* for AVProbeData.mime_typeAndreas Cadhalpun2014-10-081-3/+7
| | | | | | | | | | | | | | This makes the field consistent with AVInputFormat.mime_type and the argument type of av_match_name. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * probe: Bump the score for mime type matchingAndreas Cadhalpun2014-09-261-1/+1
| | | | | | | | | | | | It should be more trustworthy than extension matching. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * cosmetics: Write NULL pointer inequality checks more compactlyGabriel Dume2014-08-151-2/+2
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | avutil/avstring: Factor av_match_list() outMichael Niedermayer2014-10-021-17/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf/format.c: use AVPROBE_SCORE_MIME instead of AVPROBE_SCORE_EXTENSION for ↵Andreas Cadhalpun2014-09-131-1/+1
| | | | | | | | | | | | | | matching mime types Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/format: Run image2 probe again when file content data is availableMichael Niedermayer2014-09-121-1/+1
| | | | | | | | | | Reviewed-by: Benoit Fouet <benoit.fouet@free.fr> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/format: remove unused variableMichael Niedermayer2014-08-141-1/+0
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '24e87f7f425a52b1e69661dcb2fbe0555a76f30b'Michael Niedermayer2014-08-101-6/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * commit '24e87f7f425a52b1e69661dcb2fbe0555a76f30b': Remove obsolete FF_API_PROBE_MIME cruft. Conflicts: libavformat/avformat.h libavformat/format.c libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Remove obsolete FF_API_PROBE_MIME cruft.Anton Khirnov2014-08-091-6/+0
| |
* | avformat/format: Check for av_guess_format() failureMichael Niedermayer2014-08-021-1/+3
| | | | | | | | | | | | | | Fixes null pointer dereference Fixes Ticket3812 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/format: use av_match_name() in av_guess_codec()Michael Niedermayer2014-08-021-1/+1
| | | | | | | | | | | | Fixes part of Ticket2236 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/format: fix memleak and error codeMichael Niedermayer2014-07-291-1/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/format.c: remove duplicate include, put libavutil includes togetherMichael Niedermayer2014-07-291-3/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/format: simplify ifdefferyMichael Niedermayer2014-07-291-3/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat: fix probe mime version checksMichael Niedermayer2014-07-291-3/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '3a19405d574a467c68b48e4b824c76617fd59de0'Michael Niedermayer2014-07-291-10/+24
|\ \ | |/ | | | | | | | | | | | | | | | | | | * commit '3a19405d574a467c68b48e4b824c76617fd59de0': avformat: Use the mime type information in input probe Conflicts: libavformat/format.c libavformat/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avformat: Use the mime type information in input probeLuca Barbato2014-07-291-12/+22
| | | | | | | | | | It should provide a quicker guess for elementary streams provided by http.
* | Merge commit '69e7336b8e16ee65226fc20381baf537f4b125e6'Michael Niedermayer2014-07-291-20/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * commit '69e7336b8e16ee65226fc20381baf537f4b125e6': avstring: Expose the simple name match function Conflicts: libavutil/avstring.c libavutil/avstring.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avstring: Expose the simple name match functionLuca Barbato2014-07-291-19/+1
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>