summaryrefslogtreecommitdiff
path: root/libavformat/spdifenc.c
Commit message (Collapse)AuthorAge
* Mark read-only tables as staticDiego Biurrun2016-05-05
|
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavf: replace AVStream.codec with AVStream.codecparAnton Khirnov2016-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, AVStream contains an embedded AVCodecContext instance, which is used by demuxers to export stream parameters to the caller and by muxers to receive stream parameters from the caller. It is also used internally as the codec context that is passed to parsers. In addition, it is also widely used by the callers as the decoding (when demuxer) or encoding (when muxing) context, though this has been officially discouraged since Libav 11. There are multiple important problems with this approach: - the fields in AVCodecContext are in general one of * stream parameters * codec options * codec state However, it's not clear which ones are which. It is consequently unclear which fields are a demuxer allowed to set or a muxer allowed to read. This leads to erratic behaviour depending on whether decoding or encoding is being performed or not (and whether it uses the AVStream embedded codec context). - various synchronization issues arising from the fact that the same context is used by several different APIs (muxers/demuxers, parsers, bitstream filters and encoders/decoders) simultaneously, with there being no clear rules for who can modify what and the different processes being typically delayed with respect to each other. - avformat_find_stream_info() making it necessary to support opening and closing a single codec context multiple times, thus complicating the semantics of freeing various allocated objects in the codec context. Those problems are resolved by replacing the AVStream embedded codec context with a newly added AVCodecParameters instance, which stores only the stream parameters exported by the demuxers or read by the muxers.
* lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-27
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* dca: Move syncword definitions to a separate headerDiego Biurrun2015-03-04
|
* lavf: more correct printf format specifiersDiego Biurrun2014-03-11
|
* lavf: Don't explicitly flush after each written packet in muxersClément Bœsch2013-09-16
| | | | | | | | Since 596e5d4783, this is not necessary anymore. It also allows to actually disable the flushing, improving write performance (but possibly giving worse latency in real-time streaming). Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat: av_log_ask_for_sample() ---> avpriv_request_sample()Diego Biurrun2013-03-13
|
* Add informative messages to av_log_ask_for_sample calls lacking themDiego Biurrun2013-03-12
|
* Return proper error code after av_log_ask_for_sample()Diego Biurrun2012-12-23
|
* miscellaneous typo fixesDiego Biurrun2012-12-21
|
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* dca: Switch dca_sample_rates to avpriv_ prefix; it is used across libsDiego Biurrun2012-08-01
|
* dca: Move tables used outside of dcadec.c to a separate file.Diego Biurrun2012-08-01
|
* cosmetics: Align muxer/demuxer declarationsMartin Storsjö2012-04-06
| | | | | | | Also add missing trailing commas, break long codec_tag lines and add spaces in codec_tag declarations. Signed-off-by: Martin Storsjö <martin@martin.st>
* spdifenc: use special alignment for DTS-HD length_codeAnssi Hannula2012-01-05
| | | | | | | | Align IEC 61937 length_code for DTS-HD so that (length_code & 0xf) == 0x8. This is reportedly needed with some receivers. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavc: use avpriv_ prefix for ff_aac_parse_header().Anton Khirnov2011-10-20
| | | | It's used in lavf.
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-12
|
* lavf: use designated initialisers for all (de)muxers.Anton Khirnov2011-07-17
| | | | It's more readable and less prone to breakage.
* lavf: use designated initializers for AVClasses.Anton Khirnov2011-05-17
|
* AVOptions: make default_val a union, as proposed in AVOption2.Anton Khirnov2011-05-10
| | | | This breaks API and ABI.
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avio: rename put_flush_packet -> avio_flushAnton Khirnov2011-03-16
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* spdifenc.c: fix compile because of missing include avio_internal.h.Ronald S. Bultje2011-02-21
|
* avio: make put_nbyte internal.Anton Khirnov2011-02-21
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio: avio_ prefixes for put_* functionsAnton Khirnov2011-02-21
| | | | | | | | | | | | In the name of consistency: put_byte -> avio_w8 put_<type> -> avio_w<type> put_buffer -> avio_write put_nbyte will be made private put_tag will be merged with avio_put_str Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: rename ByteIOContext to AVIOContext.Anton Khirnov2011-02-20
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* spdifenc: set flag AVFMT_NOTIMESTAMPSAnssi Hannula2011-02-16
| | | | | | There are no timestamps in IEC 61937. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* spdifenc: update 482d98f69b2eb7a7b0b5054101a43db384e9432b to the latest patchJanne Grunau2011-02-16
| | | | "spdifenc: IEC 61937 encapsulation of DTS-HD for HDMI"
* spdifenc: fix byte order on big-endian systemsAnssi Hannula2011-02-13
| | | | | | | | | | | | | | | | | | | There is a check for HAVE_BIGENDIAN when outputting the IEC 61937 stream. On big-endian systems the payload data is not byteswapped, causing in effect the outputted payload data to be in a different byte order on big-endian than on little-endian systems. However, the IEC 61937 preamble (and the final odd byte if present) is always outputted in the same byte order. This means that on big-endian systems the headers have a different byte order than the payload, preventing useful use of the output. Fix that by outputting the data in a format suitable for sending to an audio device in S16LE format by default. Output as big-endian (S16BE) is added as an AVOption. This makes the muxer output the same on all archs by default. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* spdifenc: IEC 61937 encapsulation of DTS-HD for HDMIAnssi Hannula2011-02-13
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò2011-01-26
| | | | | This also lists the objects from those two libraries as internal (by adding the ff_ prefix) so that they can then be hidden via linker scripts.
* Use new function put_nbyte() to speed up padding.Anssi Hannula2011-01-02
| | | | | | Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26194 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: Re-indent after last commit.Carl Eugen Hoyos2010-12-29
| | | | Originally committed as revision 26161 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not add the preamble if the DTS stream is already padded, like DTS inAnssi Hannula2010-12-29
| | | | | | | | | wav. In that case, DTS can be transmitted through S/PDIF without the IEC 61937 headers. Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26160 to svn://svn.ffmpeg.org/ffmpeg/trunk
* s/IEC958/IEC 61937 - IEC958 is a lower level format.Anssi Hannula2010-12-29
| | | | | | Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26141 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix wrong bitstream mode for AC-3.Anssi Hannula2010-12-29
| | | | | | | | Noticed by CrystalP from XBMC. Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26130 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Improve error return values.Anssi Hannula2010-12-29
| | | | | | Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26129 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Always encapsulate DTS in big-endian format, at least some receiversAnssi Hannula2010-12-29
| | | | | | | | require that. Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26128 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add Anssi and myself to the authors in doxygen.Anssi Hannula2010-12-29
| | | | | | Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 26127 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add copyright notices for the E-AC3 and TrueHD parts of the muxer.Carl Eugen Hoyos2010-11-27
| | | | Originally committed as revision 25835 to svn://svn.ffmpeg.org/ffmpeg/trunk
* IEC 61937 encapsulation of TrueHD for HDMI passthrough.Anssi Hannula2010-11-27
| | | | | | | | This works at least for some people testing it. Patch by Anssi Hannula, anssi d hannula a iki fi Originally committed as revision 25834 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 100l: Fix crash in SPDIF muxer.Carl Eugen Hoyos2010-11-17
| | | | Originally committed as revision 25762 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add support for IEC 61937 ("SPDIF") encapsulation for E-AC-3.Carl Eugen Hoyos2010-11-17
| | | | | | | | | Only works via HDMI. Patch by Anssi Hannula (anssi d hannula a iki d fi), based on some work by myself. Originally committed as revision 25760 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move code to be used by the IEC 61937 demuxer from spifenc.c into commonAnssi Hannula2010-11-10
| | | | | | | | files spdif.h and spdif.c. Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 25715 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename spdif.c as spdifenc,c to prepare for future spdif demuxer.Anssi Hannula2010-11-09
Patch by Anssi Hannula, anssi d hannula a iki d fi Originally committed as revision 25713 to svn://svn.ffmpeg.org/ffmpeg/trunk