summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* rtmp: Pass the proper return code in rtmp_handshakeSamuel Pitoiset2012-05-24
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Check return codes of net IO operationsSamuel Pitoiset2012-05-24
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Return a proper error code instead of -1Samuel Pitoiset2012-05-24
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Check malloc callsSamuel Pitoiset2012-05-24
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmp: Check ff_rtmp_packet_create callsSamuel Pitoiset2012-05-24
| | | | | | | Check malloc calls used by ff_rtmp_packet_create, unify error handling and pass on error codes. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: Make sure sample_rate is set to the updated valueMartin Storsjö2012-05-23
| | | | | | | | | | | | | | | | The sample_rate variable is used for checks for audio format changes at the end of the function. This fixes cases where the sample rate was set from the codec id by flv_set_audio_codec (as for nellymoser 8 kHz/16 kHz), so the value set to last_sample_rate wasn't equal to sample_rate at this point. This caused the demuxer otherwise reports a spurious change to 5512 Hz and back to the correct one. Updating channels in the same way is only done for consistency. Currently, flv_set_audio_codec doesn't update that value. Signed-off-by: Martin Storsjö <martin@martin.st>
* os_support: Define SHUT_RD, SHUT_WR and SHUT_RDWR on OS/2Dave Yeo2012-05-23
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Add support for reading http POST reply headersSamuel Pitoiset2012-05-22
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* http: Add http_shutdown() for ending writing of postsSamuel Pitoiset2012-05-22
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* tcp: Allow signalling end of reading/writingSamuel Pitoiset2012-05-22
| | | | | | | tcp_shutdown() isn't needed at the moment, but is added for consistency to explain how the function is supposed to be used. Signed-off-by: Martin Storsjö <martin@martin.st>
* avio: Add a function for signalling end of reading/writingSamuel Pitoiset2012-05-22
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Remove libnut wrapperDiego Biurrun2012-05-21
| | | | libnut is unmaintained and known to be buggy; native NUT code exists.
* avformat: Add a flag to mark muxers that allow (non strict) monotone timestamps.James Zern2012-05-20
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* http: Factorize the code by adding http_read_header()Samuel Pitoiset2012-05-20
| | | | | | This function is used for reading http reply headers. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: change some (de)muxer names to lowercaseMans Rullgard2012-05-19
| | | | | | This is consistent with other format names. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: make output format matching case insensitiveMans Rullgard2012-05-19
| | | | | | This is consistent with how input formats are matched. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mov: enable parsing for VC-1.Anton Khirnov2012-05-18
| | | | | This makes lavf discard broken timestamps for non-B frames in samples/isom/vc1-wmapro.ism.
* rtmp: Don't assume path points to a string of nonzero lengthMartin Storsjö2012-05-17
| | | | | | | | | If using the new -rtmp_app and -rtmp_playpath parameters, one can in many cases set the main url to just rtmp://server/. If the trailing slash is omitted, path is a string of zero length, and using path+1 will end up reading uninitialized data. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: add mdec to is_intra_only() listMans Rullgard2012-05-15
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* mtv: do not byteswap raw video in demuxerMans Rullgard2012-05-14
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* gxfenc: remove disabled half-implemented MJPEG tagDiego Biurrun2012-05-14
|
* rtmp: Implement check bandwidth notification.Samuel Pitoiset2012-05-10
| | | | | | According to the behaviour of librtmp, it is recommended to send this message to the server after receiving the 'onBWDone' callback in order to do bandwidth checking and improve compatibility with some servers.
* rtmp: Support 'rtmp_swfurl', an option which specifies the URL of the SWF ↵Samuel Pitoiset2012-05-10
| | | | player.
* rtmp: Support 'rtmp_flashver', an option which overrides the version of the ↵Samuel Pitoiset2012-05-10
| | | | Flash plugin.
* rtmp: Support 'rtmp_tcurl', an option which overrides the URL of the target ↵Samuel Pitoiset2012-05-10
| | | | | | stream. Signed-off-by: Martin Storsjö <martin@martin.st>
* sctp: be consistent with socket option levelSean McGovern2012-05-10
| | | | | | Replace SOL_SCTP by the more portable IPPROTO_SCTP. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mov: make one comment slightly more specificDiego Biurrun2012-05-09
|
* sctp: Initial tcp-alike sctp support with streamsLuca Barbato2012-05-08
| | | | | Signed-off-by: Jordi Ortiz <nenjordi@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* options_table: Add some missing #includes to fix "make checkheaders".Alex Converse2012-05-08
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* rtsp: Add content-type message header parsingJordi Ortiz2012-05-08
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rtmp: Support 'rtmp_live', an option which specifies if the media is a live ↵Samuel Pitoiset2012-05-08
| | | | | | stream. Signed-off-by: Martin Storsjö <martin@martin.st>
* dv: Split profile handling code into a separate file.Diego Biurrun2012-05-07
|
* flvenc: use AVFormatContext, not AVCodecContext for logging.Anton Khirnov2012-05-07
| | | | Encoder tag being used for muxer messages is confusing.
* mov: Remove write-only variable in mov_read_chan().Diego Biurrun2012-05-07
| | | | libavformat/mov.c:597:25: warning: variable ‘cflags’ set but not used
* lavf: add missing '*' in a doxy.Anton Khirnov2012-05-07
|
* build: cosmetics: Split HEADERS/OBJS/PROGS lists into one entry per line.Diego Biurrun2012-05-07
|
* Mark a number of variables only used in av_dlog() calls as av_unused.Diego Biurrun2012-05-06
| | | | This fixes a number of unused-but-set gcc warnings.
* mpegmux: add stuffing to avoid incomplete PCM framesJanne Grunau2012-05-06
| | | | Fixes https://bugzilla.libav.org/show_bug.cgi?id=244
* rtsp: avoid const warnings from strtol() callMans Rullgard2012-05-06
| | | | | | | | | The strtol() interface makes it difficult to use with const-qualified pointers. With this change, although the const is still lost, the compiler does not warn about it. Signed-off-by: Mans Rullgard <mans@mansr.com>
* rtpdec_h264: Add missing newlines to av_log callsMartin Storsjö2012-05-05
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_h264: Free old extradata before clearing the pointerMartin Storsjö2012-05-05
| | | | | | | This avoids memory leaks if there actually was some extradata set before. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_h264: Reorder code blocksMartin Storsjö2012-05-05
| | | | | | This removes one level of indentation. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_h264: Make start_sequence a static const arrayMartin Storsjö2012-05-05
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_h264: Cleanup debug packet type countingMartin Storsjö2012-05-05
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_h264: Cosmetic cleanupMartin Storsjö2012-05-05
| | | | | | | Add/fix spacing, split long lines, align assignments where suitable. Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_h264: Clean up commentsMartin Storsjö2012-05-05
| | | | | | | | | Split long comments, move long comments at the end of lines to separate lines above, fix vertical alignment, fix up comment style (unify trailing dots - comments had a mix of 2, 3 or 4 dots, where it would be just as good without them at all). Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_h264: Convert commented out code into setting an unused variableMartin Storsjö2012-05-05
| | | | | | | It is worth keeping instead of removing, in case reading this bit becomes necessary at some later point. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_h264: Remove a useless ifdefMartin Storsjö2012-05-05
| | | | | | assert is a no-op if DEBUG isn't defined. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_h264: Remove outdated/useless/incorrect commentsMartin Storsjö2012-05-05
| | | | | | | RTCP is handled elsewhere, not in the depacketizer for an individual format. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec_h264: Remove useless memory corruption checksMartin Storsjö2012-05-05
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>