summaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* dvenc: don't use deprecated AVCODEC_MAX_AUDIO_FRAME_SIZEAnton Khirnov2012-08-181-2/+4
|
* rtmpdh: Do not generate the same private key every time when using libnettleSamuel Pitoiset2012-08-171-1/+9
| | | | | | | Replace mpz_random by mpz_urandomb with a random state initialization in order to improve the randomness. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtp: remove ff_rtp_get_rtcp_file_handle().Jordi Ortiz2012-08-172-10/+0
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp.c: use ffurl_get_multi_file_handle() instead of ↵Jordi Ortiz2012-08-171-4/+16
| | | | | | ff_rtp_get_rtcp_file_handle() Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: add (ff)url_get_multi_file_handle() for getting more than one fdJordi Ortiz2012-08-173-8/+46
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Use int instead of ssize_tMartin Storsjö2012-08-161-3/+3
| | | | | | | Not all compilers support ssize_t (MSVC doesn't), and none of these variables need to be larger than 32 bit. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Add support for receiving incoming streamsJordi Ortiz2012-08-162-7/+510
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Add some more missing includes after removing the implicit common.hMartin Storsjö2012-08-151-0/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Automatically compute the hash for SWFVerificationSamuel Pitoiset2012-08-152-1/+135
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Add support for SWFVerificationSamuel Pitoiset2012-08-152-1/+67
| | | | | | | | | Specifies how the server verifies client SWF files before allowing the files to connect to an application. Verifying SWF files is a security measure that prevents someone from creating their own SWF files that can attempt to stream your resources. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Gracefully ignore _checkbw errors by tracking themSamuel Pitoiset2012-08-141-4/+16
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Do not send _checkbw calls as notificationsSamuel Pitoiset2012-08-142-10/+1
| | | | | | | | | | | | | | | | | | | | The _checkbw calls were changed to use transactionId 0 in commit 82613564 so that servers would not return _result/_error about it. While this is the strict interpretation of the spec, there are servers that return _error about it, even if transactionId was 0. The latest version of EvoStream Media Server (the commercial version of crtmpserver) behaves properly as described, i.e. returning an _error normally but not returning anything when using transactionId 0. The latest version of crtmpserver (right now at least) doesn't behave like this though, it returns an error even if transactionId was 0. There are also other servers that return errors even if transactionId is set to 0. Therefore set a proper transaction id so that the invoke can be tracked and the error properly ignored instead. Signed-off-by: Martin Storsjö <martin@martin.st>
OpenPOWER on IntegriCloud