summaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
* avformat: fix typo in avformat_close_inputLuca Barbato2012-09-151-1/+1
| | | | The condition should not be &&.
* mp3enc: write Xing TOCAnton Khirnov2012-09-151-20/+120
| | | | | | | | | | | | Based on the code by: Peter Belkner <pbelkner@snafu.de>, Michael Niedermayer <michaelni@gmx.at>, Clément Bœsch <clement.boesch@smartjog.com>, Reimar Döffinger <Reimar.Doeffinger@gmx.de>, and Tobias Rapp <t.rapp@noa-audio.com> Alex Converse <alex.converse@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mp3enc: support MPEG-2 and MPEG-2.5 in Xing header.Clément Bœsch2012-09-151-7/+17
|
* mp3enc: downgrade some errors in writing Xing frame to warningsReimar Döffinger2012-09-151-2/+5
| | | | Also clarify the meaning of the log message.
* lavf: flush the output AVIOContext in av_write_trailer().Anton Khirnov2012-09-1517-24/+10
| | | | | | | This is consistent with stdio and is what we want to do in all cases. Fixes a bug in the voc muxer which didn't flush in write_trailer() previously. This is the cause of the change in the test results.
* lavf: cosmetics, reformat av_write_trailer().Anton Khirnov2012-09-151-8/+8
|
* avio: flush the internal buffer in avio_close()Stefano Sabatini2012-09-154-3/+5
| | | | | This is consistent with stdio, and thus what people would naturally expect.
* riff: Add SVQ3 fourccDerek Buitenhuis2012-09-141-0/+1
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avformat: refactor avformat_close_inputLuca Barbato2012-09-141-4/+13
| | | | Do not crash if the input format is not allocated yet.
* avformat: simplify avformat_close_inputLuca Barbato2012-09-141-2/+2
| | | | avio_close checks by itself for NULL condition.
* os_support: Choose between direct.h and io.h using a configure checkMartin Storsjö2012-09-131-3/+3
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* os_support: Include io.h instead of direct.h on mingw32ceMartin Storsjö2012-09-131-0/+4
| | | | | | | | Windows CE doesn't have neither mkdir nor _mkdir officially (only CreateDirectoryW), but mingw32ce has compat wrappers with these names (declared in io.h since direct.h is unavailable). Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegts: check substreams before discardingChristian Schmidt2012-09-121-1/+2
| | | | | | Allow to extract the AC3 core from TrueHD with the "copy" codec. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Add a smooth streaming segmenter muxerMartin Storsjö2012-09-125-1/+631
| | | | | | | | | | | | | | | | | This muxer splits the output from the ismv muxer into individual files, in realtime. The same can also be done by the standalone tool ismindex, but this muxer is needed for doing it in realtime (especially for live streams that need extra handling for updating the lookahead fields in the fragment headers). Using this muxer, one can deliver live smooth streaming from a normal static file web server. (Using ismindex, one can deliver premade smooth streaming files from a static file web server, or prepare files for serving with IIS.) Signed-off-by: Martin Storsjö <martin@martin.st>
* file: Add an avoption for disabling truncating existing files on openMartin Storsjö2012-09-121-2/+22
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* img2dec: always close AVIOContextsTomas Härdin2012-09-121-3/+3
| | | | | | Zero sized files would cause the contexts to leak away. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rtpdec_jpeg: Error out on other unsupported type values as wellMartin Storsjö2012-09-121-0/+4
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Disallow using the reserved q valuesMartin Storsjö2012-09-121-0/+4
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Fold the default qtables case into an existing if statementMartin Storsjö2012-09-121-6/+4
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Store and reuse old qtables for q values 128-254Martin Storsjö2012-09-121-6/+27
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Simplify the calculation of the number of qtablesMartin Storsjö2012-09-121-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Add more comments about the fields in the SOF0 sectionMartin Storsjö2012-09-121-9/+9
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Clarify where the subsampling magic numbers come fromMartin Storsjö2012-09-121-3/+3
| | | | | | | Write out the numbers the way they are constructed, not just the final values. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Don't use a bitstream writer for the EOI markerMartin Storsjö2012-09-121-5/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Don't needlessly use a bitstream writer for the headerMartin Storsjö2012-09-121-56/+58
| | | | | | | | Everything written with this bitstream writer is 8/16 bit units (except for a pair of 4 bit values), so using a bitstream writer isn't necessary. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Simplify writing of the jpeg headerMartin Storsjö2012-09-121-18/+10
| | | | | | | Generalize writing of any number of qtables. Don't manually write 16 bit values in two separate calls. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Merge two if statementsMartin Storsjö2012-09-121-31/+30
| | | | | | This makes the code more readable and robust. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Write the DHT section properlyMartin Storsjö2012-09-121-13/+20
| | | | | | | | | Currently the size header of the generated DHT section is incorrect, making the mjpeg decoder just skip it. Since the written huffman tables are the default ones, this failure had gone undetected. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_jpeg: Add support for default quantizersSamuel Pitoiset2012-09-111-3/+47
| | | | | | | Generate quantization tables when they are not present in the first chunk. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: always set AVFMTCTX_NOHEADER.Anton Khirnov2012-09-111-4/+1
| | | | New streams may be created at any time, e.g. on codec change.
* file: Use a normal private context for storing the file descriptorMartin Storsjö2012-09-101-12/+21
| | | | | | Previously the file descriptor was stored in the priv_data pointer. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtp: Depacketization of JPEG (RFC 2435)Samuel Pitoiset2012-09-095-1/+335
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mov_chan: Only set the channel_layout if setting it to a nonzero valueMartin Storsjö2012-09-081-3/+4
| | | | | | | | If regularly parsing new chan atoms (as in rtpdec_qt), but the chan atoms don't actually contain any channel layout, don't reset the value that the caller has filled in (by guessing). Signed-off-by: Martin Storsjö <martin@martin.st>
* mov_chan: Reindent an incorrectly indented lineMartin Storsjö2012-09-081-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mp2 muxer: mark as AVFMT_NOTIMESTAMPS.Carl Eugen Hoyos2012-09-071-0/+1
| | | | Signed-off-by: Alex Converse <alex.converse@gmail.com>
* mov_chan: Pass a separate AVIOContext for readingSamuel Pitoiset2012-09-074-5/+7
| | | | | | | This fixes crashes when called from rtpdec_qt, where AVFormatContext->pb is null, a crash present since 3bab7cd128. Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-0426-61/+61
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union memberMartin Storsjö2012-09-046-11/+11
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union memberMartin Storsjö2012-09-047-37/+37
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: make avio_close NULL the freed bufferLuca Barbato2012-09-041-1/+1
|
* crypto: Remove a stray double spaceMartin Storsjö2012-08-311-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* MSS2 decoderAlberto Delmás2012-08-311-0/+1
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* build: allow non-standard variations of linker -l/-L flagsMans Rullgard2012-08-291-1/+1
| | | | | | | | | This enables replacing the -l and -L flags used to specify the just-built libraries when linking the tools and shared libs with non-standard syntaxes. System library flags are already handled by the filtering mechanism in configure. Signed-off-by: Mans Rullgard <mans@mansr.com>
* sdp: Use static const char arrays instead of pointers to stringsMartin Storsjö2012-08-281-2/+2
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* sdp: Include profile-level-id for H264Martin Storsjö2012-08-281-0/+12
| | | | | | | This is required for playback with the Stagefright RTSP framework on Android. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_h264: Don't set the pixel formatSamuel Pitoiset2012-08-281-1/+0
| | | | | | | There is no need for this depacketizer to set the pixel format, the decoder can do that just fine. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Free the rtpdec context properlyMartin Storsjö2012-08-271-1/+1
| | | | | | | | | The condition for calling the rtpdec cleanup was broken in df8cf076c86. This fixes a memory leak. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: support strict rtmp serversSamuel Pitoiset2012-08-221-4/+7
| | | | | | | | In order to send or receive a stream FCPublish, FCSubscribe and _checkbw are completely optional and often not implemented. releaseStream over a non-existen stream might report an error instead of being silent. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* libavformat: add const to AVCodec pointersMans Rullgard2012-08-181-2/+2
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* swf(dec): replace CODEC_ID with AV_CODEC_IDAnton Khirnov2012-08-182-9/+9
|
OpenPOWER on IntegriCloud