summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* gsm demuxer: use generic seeking instead of a gsm-specific function.Justin Ruggles2012-01-11
| | | | | Since packets all contain only a single block, the generic seek function can be used while still maintaining block-accuracy.
* gsm demuxer: return packets with only 1 gsm block at a time.Justin Ruggles2012-01-11
| | | | | fixes stream copy of raw gsm to mov. tested with QuickTime.
* wtv: fix memleaks during normal operationJanne Grunau2012-01-11
|
* ipmovie: fix pts for CODEC_ID_INTERPLAY_DPCMJustin Ruggles2012-01-10
| | | | frame sample count calculation was incorrect
* sierravmd: fix audio ptsJustin Ruggles2012-01-10
| | | | | The duration of the first packet was being calculated incorrectly, leading to an incorrect timestamp offset.
* movenc: Don't store a nonzero creation time if nothing was set by the callerMartin Storsjö2012-01-10
| | | | | | | | | If the creation time is stored in the file as a zero, the mov demuxer skips exporting the creation time. Currently, files muxed without a creation time get demuxed with a Jan 1st 1970 creation timestamp. Signed-off-by: Martin Storsjö <martin@martin.st>
* build: Skip compiling network.h and rtsp.h if networking is not enabled.Diego Biurrun2012-01-07
| | | | | | rtsp.h relies on network.h and the latter conditionally defines fallback OS structures that rely on configure tests, which are only run if networking is enabled.
* cosmetics: drop some pointless parenthesesDiego Biurrun2012-01-07
|
* vqf: recognize more metadata chunksPaul B Mahol2012-01-07
| | | | | | | Do not create tags for non-char chunks. Create readable tag for DSIZ chunk. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* tta: Fix returned error code at EOFMichael Niedermayer2012-01-07
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* tta: fix off be 1 error in the end detection.Michael Niedermayer2012-01-07
| | | | | | | Fixes use of uninitialized values. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* ipmovie: Add param change side data if the video dimensions have changedPaul B Mahol2012-01-07
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* electronicarts: check bytes per sample for validityJanne Grunau2012-01-07
| | | | Prevents division by zero.
* vqf: add more known extensionsPaul B Mahol2012-01-06
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* 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>
* ipmovie: do not read audio packets before the codec is knownJanne Grunau2012-01-05
| | | | Prevents a division by zero.
* avio: Only do implicit network initialization for network protocolsMartin Storsjö2012-01-05
| | | | | | | | | | The implicit network initialization is set to be removed in the future, but is kept for compatibility. By not doing the implicit initialization for non-network protocols, we avoid the warning about avformat_network_init() not being called for these, where it really doesn't make much sense. Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: Add an URLProtocol flag for indicating that a protocol uses networkMartin Storsjö2012-01-05
| | | | | | | This definition is in two files, since the definitions will move to the private header at the next bump. Signed-off-by: Martin Storsjö <martin@martin.st>
* matroskadec: Fix a bug where a pointer was cached to an array that might ↵Chris Evans2012-01-05
| | | | | | | | | | later move due to a realloc() Fixes bug #190 Chromium bug #100492 related to CVE-2011-3893 Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* mov: Support MOV_CH_LAYOUT_USE_DESCRIPTIONS for labeled descriptions.Alex Converse2012-01-05
|
* lavf: cosmetics, reformat av_read_frame().Anton Khirnov2012-01-05
|
* lavf: refactor av_read_frame() to make it easier to understand.Anton Khirnov2012-01-05
|
* mtv: Make sure audio_subsegments is not 0Shitiz Garg2012-01-04
| | | | | | | audio_subsegments would be 0 and cause floating point exceptions Fixes bugzilla #144 Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* flvdec: Fix compiler warning for uninitialized variablesJean First2012-01-04
| | | | | | | These can't be used uninitialized in practice, but the compiler doesn't realize it. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Fix compiler warning for uninitialized variableJean First2012-01-04
| | | | | | | This one won't ever be used uninitialized in practice, but the compiler doesn't realize it. Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: exit early in fill_buffer without read_packetJanne Grunau2012-01-04
| | | | | | | Fixes an invalid free() with ass in avi. The sample in bug 98 passes parts of AVPacket.data as buffer for the AVIOContext. Since the packet is quite large fill_buffer tries to reallocate the buffer before doing nothing. Fixes bug 98.
* adx: add an adx muxerJustin Ruggles2012-01-03
|
* adx: add AVFMT_GENERIC_INDEX to demuxer flags.Justin Ruggles2012-01-03
| | | | fixes seeking
* lavf: flush decoders in avformat_find_stream_info().Anton Khirnov2012-01-03
| | | | | This means that avformat_find_stream_info() now works properly with multiple threads, so there's no need to force thread count to 1.
* Fix a bunch of typos.Diego Biurrun2012-01-02
|
* Drop some pointless void* return value casts from av_malloc() invocations.Diego Biurrun2012-01-02
|
* mpegenc: simplify muxrate calculationJanne Grunau2012-01-02
| | | | | | | The fate-h264-bsf-mp4toannexb failures were caused by an integer overflow of the unneeded multiplication. Inspired by patch by: Michael Niedermayer <michaelni@gmx.at>
* rawdec: Set start_time to 0 for raw audio files.Reimar Döffinger2012-01-01
| | | | | | | None of the raw audio files have timestamps, thus setting start_time to 0 should be reasonable. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Detect 'yuv2' as rawvideo also in avi.Carl Eugen Hoyos2012-01-01
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* threads: default to automatic thread count detectionJanne Grunau2011-12-31
|
* applehttpproto: Apply the same reload interval changes as for the demuxerAndrey Utkin2011-12-29
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* applehttp: Use half the target duration as interval if the playlist didn't ↵Martin Storsjö2011-12-29
| | | | | | | | | update This is mandated in draft-pantos-http-live-streaming-07, section 6.3.4. Signed-off-by: Martin Storsjö <martin@martin.st>
* applehttp: Use the last segment duration as reload intervalAndrey Utkin2011-12-29
| | | | | | | | According to draft-pantos-http-live-streaming-07, 6.3.4, the duration of the last media segment in the playlist should be used as initial minimum reload delay. Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegts: adjustable minimum PES payloadJindřich Makovička2011-12-28
| | | | | | | | | | | | With the current default PES packet size, and very small audio bitrates, audio packet duration gets too long. For players, which wait for a whole audio packet (or more) it takes a very long time to start playing sound. For 24kbps audio, one PES packet is about 1 second long. On Motorola STBs, we observe about 3 second delay before the playback starts with the default setting. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegts: properly output large audio packetsJindřich Makovička2011-12-28
| | | | | | | | Do not assume the audio packets being always smaller than DEFAULT_PES_PAYLOAD_SIZE. Signed-off-by: Jindřich Makovička <makovick@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avformat: Add SMJPEG demuxer.Paul B Mahol2011-12-28
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* build: fix standalone compilation of OMA muxerDiego Biurrun2011-12-23
| | | | The muxer depends on the id3v2 writing code, so link against it.
* build: fix standalone compilation of Microsoft XMV demuxerDiego Biurrun2011-12-23
| | | | The demuxer depends on the RIFF codec tags code, so link against it.
* build: fix standalone compilation of Core Audio Format demuxerDiego Biurrun2011-12-23
| | | | | The demuxer depends on code from mov.c, which in turn depends on code from mov_chan.c, so link against it.
* mov: Don't stick the QuickTime field ordering atom in extradata.Alex Converse2011-12-21
| | | | | | The 'fiel' atoms can be found in H.264 tracks clobbering the extradata. MJPEG supports non field based extradata, and this data should be preserved when copying.
* asfdec: add side data to ASFStream packet instead of output packet.Justin Ruggles2011-12-21
| | | | fixes memleak of side data
* idroqdec: set AVFMTCTX_NOHEADER and create streams as they occur.Justin Ruggles2011-12-21
| | | | | | This fixes demuxing of file where the first packet is not audio. Such files are generated by our idroq muxer. It also fixes demuxing of audio only idroq files.
* flvdec: Add param change side data if the sample rate or channels have changedMartin Storsjö2011-12-21
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libavformat: Add a utility function for adding parameter change side dataMartin Storsjö2011-12-21
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: Export new AAC/H.264 extradata as side data on the next packetMartin Storsjö2011-12-21
| | | | | | | | | | | | | | | | | | Compared to just overwriting the old extradata, this has the advantage of letting the decoder know exactly when the extradata changed (otherwise it is changed immediately when the new extradata packet is demuxed, even if there's old queued packets awaiting to be decoded). This makes it easier for decoders to actually react to the change, so they won't have to inspect the extradata for each packet to see if it might have changed. This works when sequentially playing a file with sample rate changes, but if seeking past a new extradata packet in the file, it obviously doesn't work properly. That case doesn't work in flash player either, so it's probably ok not to handle it. Signed-off-by: Martin Storsjö <martin@martin.st>