summaryrefslogtreecommitdiff
path: root/libavformat/format.c
Commit message (Collapse)AuthorAge
* lavf: add a flag for experimental (de)muxersAnton Khirnov2022-01-03
|
* avformat/format: Improve const-correctnessAndreas Rheinhardt2021-10-07
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avformat: Constify the API wrt AV(In|Out)putFormatAndreas Rheinhardt2021-04-27
| | | | | | | 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-20
|
* lavf: Constify AVInputFormat pointer.Carl Eugen Hoyos2019-03-20
|
* lavf: Constify AVOutputFormat pointer.Carl Eugen Hoyos2019-03-20
|
* lavf/format: Remove the dead code in av_probe_input_buffer2.Jun Zhao2018-05-06
| | | | | | 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-02
| | | | Signed-off-by: Josh de Kock <josh@itanimul.li>
* Revert "avformat/format: temporarily use old next api"Josh de Kock2018-04-02
| | | | | | | | | 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-31
| | | | | | | | | | 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-10
| | | | | | 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-06
| | | | | This also adds an avpriv function to register devices in libavformat
* lavf: add new API for iterating muxers and demuxersJosh de Kock2018-02-06
|
* avformat: use mutexes instead of atomics in av_register_{input,output}_format()James Almer2018-01-05
| | | | | 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-25
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/format: Print debug info when probe score is increased due to mime typeMichael Niedermayer2016-06-05
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/format: Weight the filename extension higher if there is nearly no ↵Michael Niedermayer2016-01-30
| | | | | | | | | 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-30
| | | | | | This makes the code much more readable Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/format: silence -Wdiscarded-qualifiersGanesh Ajjanagadde2015-09-20
| | | | | | | | | 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-16
| | | | | | | | | | 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-16
| | | | | | | 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-14
|
* avformat/format: Remove parameters from mime type before comparission for ↵Alex Agranovsky2015-09-12
| | | | | | probing Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/format: Add generic trace av_log in av_probe_input_format3()Michael Niedermayer2015-04-25
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat: Improve data streams/codec supportAnshul Maheshwari2015-01-16
| | | | | | | 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-23
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avformat/format: move mime_type_opt declaration to where its usedMichael Niedermayer2014-10-10
| | | | | | also remove a related dead store Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'b15b06ebf582ae81e47d236524c9ad6e10c8a0a7'Michael Niedermayer2014-10-08
|\ | | | | | | | | | | | | | | | | | | * 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-08
| | | | | | | | | | | | | | 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-26
| | | | | | | | | | | | 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-15
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | avutil/avstring: Factor av_match_list() outMichael Niedermayer2014-10-02
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf/format.c: use AVPROBE_SCORE_MIME instead of AVPROBE_SCORE_EXTENSION for ↵Andreas Cadhalpun2014-09-13
| | | | | | | | | | | | | | 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-12
| | | | | | | | | | Reviewed-by: Benoit Fouet <benoit.fouet@free.fr> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/format: remove unused variableMichael Niedermayer2014-08-14
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '24e87f7f425a52b1e69661dcb2fbe0555a76f30b'Michael Niedermayer2014-08-10
|\| | | | | | | | | | | | | | | | | | | | | | | * 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-09
| |
* | avformat/format: Check for av_guess_format() failureMichael Niedermayer2014-08-02
| | | | | | | | | | | | | | 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-02
| | | | | | | | | | | | Fixes part of Ticket2236 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/format: fix memleak and error codeMichael Niedermayer2014-07-29
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/format.c: remove duplicate include, put libavutil includes togetherMichael Niedermayer2014-07-29
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/format: simplify ifdefferyMichael Niedermayer2014-07-29
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat: fix probe mime version checksMichael Niedermayer2014-07-29
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '3a19405d574a467c68b48e4b824c76617fd59de0'Michael Niedermayer2014-07-29
|\| | | | | | | | | | | | | | | | | | | | | * 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-29
| | | | | | | | | | It should provide a quicker guess for elementary streams provided by http.
* | Merge commit '69e7336b8e16ee65226fc20381baf537f4b125e6'Michael Niedermayer2014-07-29
|\| | | | | | | | | | | | | | | | | | | | | | | * 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-29
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit 'e253a9e2b3d683eb51db7c776326eb07de10ad4c'Michael Niedermayer2014-07-29
|\| | | | | | | | | | | | | | | | | | | | | * commit 'e253a9e2b3d683eb51db7c776326eb07de10ad4c': avformat: Move av_probe_input* to format.c Conflicts: libavformat/format.c libavformat/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avformat: Move av_probe_input* to format.cLuca Barbato2014-07-29
| |
* | Merge commit 'ec4f04da1a3462dac429b9d15dee5f027309da15'Michael Niedermayer2014-07-27
|\| | | | | | | | | | | | | | | | | | | * commit 'ec4f04da1a3462dac429b9d15dee5f027309da15': avformat: Mark argument in av_{i|o}format_next/ffurl_protocol_next as const Conflicts: libavformat/format.c Merged-by: Michael Niedermayer <michaelni@gmx.at>