summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* asf: prevent packet_size_left from going negative if hdrlen > pktlen.Ronald S. Bultje2012-02-18
| | | | | | | | This prevents failed assertions further down in the packet processing where we require non-negative values for packet_size_left. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* rtpdec: Identify incorrectly signalled H263Martin Storsjö2012-02-18
| | | | | | | | | | | | | H263 in RTP can be packetized in two formats (RFC 2190, RFC 2429/4629). The former normally uses the static payload type 34, while the latter normally uses dynamic payload types with the SDP format names H263-1998 or H263-2000. Look for packets that don't look like proper RFC 2190 packets and switch to depacketizing them according to the new format if they match some heuristic criteria. Signed-off-by: Martin Storsjö <martin@martin.st>
* aiff: don't skip block_align==0 check on COMM-after-SSND files.Ronald S. Bultje2012-02-17
| | | | | | | This prevents SIGFPEs when using block_align for divisions. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* movenc: Write the unknown duration as 64 bit fields in ismvMartin Storsjö2012-02-18
| | | | | | | This is required for the files to play back properly in windows media player. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Write track durations with all bits set if duration is unknownMartin Storsjö2012-02-18
| | | | | | | | According to 14496-12, the duration should be all 1s if the duration is unknown. This is the case if writing a moov atom without any samples described in it (e.g. as in ismv files). Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec: add a Sun Rasterfile encoderAneesh Dogra2012-02-17
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* cdxl: fix audio for some samplesPaul B Mahol2012-02-17
| | | | | | | There may be extra padding at and of chunk. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* apetag: add proper support for binary tagsPaul B Mahol2012-02-17
| | | | | | | export as attachment streams Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* movenc: Don't set a default sample duration when creating ismvMartin Storsjö2012-02-16
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtp: Factorize the check for distinguishing RTCP packets from RTPMartin Storsjö2012-02-16
| | | | | | The binary doesn't change after this patch. Signed-off-by: Martin Storsjö <martin@martin.st>
* bethsoftvid: synchronize video timestamps with audio sample rateJustin Ruggles2012-02-16
| | | | | | | | According to unofficial documentation, the video rate is locked to the audio sample rate. This results in proper synchronization of audio and video timestamps from the demuxer. This only works if the first audio packet occurs before the first video packet or the audio sample rate is the default rate of 11111 Hz, both of which are true for all samples in our archive.
* bethsoftvid: add audio stream only after getting the first audio packetJustin Ruggles2012-02-16
| | | | | | This avoids initializing a stream with dummy values or when the file does not contain audio. Also set duration for audio packets, using the sample rate as the time base.
* bethsoftvid: Set video packet duration instead of accumulating pts.Justin Ruggles2012-02-16
|
* bethsoftvid: set packet key frame flag for audio and I-frame video packets.Justin Ruggles2012-02-16
| | | | | Fixes avconv video stream copy of bethsoft video, which was skipping all video frames unless the copyinkf option was used.
* bethsoftvid: fix read_packet() return codes.Justin Ruggles2012-02-16
| | | | Use proper AVERROR codes, and return 0 for no error.
* bethsoftvid: pass palette in side data instead of in a separate packet.Justin Ruggles2012-02-16
| | | | | | Update FATE reference to account for now non-existent palette packet. This also fixes the FATE test if frame data is not initialized in get_buffer(), so update comment in avconv accordingly.
* sdp: Ignore RTCP packets when autodetecting RTP streamsMartin Storsjö2012-02-16
| | | | | | | | The rtp demuxer which listens for RTP packets and detects the RTP payload type will currently get confused if the first packet received is an RTCP packet. Thus ignore such packets. Signed-off-by: Martin Storsjö <martin@martin.st>
* libavformat: Add an ff_ prefix to some lavf internal symbolsMartin Storsjö2012-02-15
| | | | | | | | | | Prefix the functions/tables brktimegm, pcm_read_seek, dv_offset_reset, voc_get_packet, codec_movaudio_tags, codec_movvideo_tags. After this, lavf has no global symbols without the proper prefix. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Make rtsp_demuxer_class staticMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* CDXL demuxer and decoderPaul B Mahol2012-02-14
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* hls: Re-add legacy applehttp name to preserve interface compatibility.Alex Converse2012-02-14
|
* hlsproto: Rename the functions and contextMartin Storsjö2012-02-14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* hlsproto: Encourage users to try the hls demuxer instead of the protoMartin Storsjö2012-02-14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libavformat: Rename the applehttp protocol to hlsMartin Storsjö2012-02-14
| | | | | | | | | | | | | | | | | Keep the old protocol name around for backwards compatibility until the next bump. Deprecate the method of implicitly assuming the nested protocol. For applehttp://server/path, it might have felt logical, but supporting hls://server/path isn't quite as intuitive. Therefore only support hls+http://server/path from now on. Using this protocol at all is discouraged, since the hls demuxer is more complete and fits into the architecture better. There have been cases where the protocol implementation worked better than the demuxer, but this should no longer be the case. Signed-off-by: Martin Storsjö <martin@martin.st>
* hls: Rename the functions and contextMartin Storsjö2012-02-14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libavformat: Rename the applehttp demuxer to hlsMartin Storsjö2012-02-14
| | | | | | | | When this demuxer was created, there didn't seem to be any consensus of a common short name for this protocol. Now the consensus seems to be to call it hls. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Support H263 in RFC 2190 formatMartin Storsjö2012-02-14
| | | | | | | | | This is different from the "modern" RTP payload formats for H263 as defined by RFC 4629, 2429 and 3555. According to the newer RFCs, this old one is to be considered deprecated and only be used for interoperating with legacy systems. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Support muxing VC1Martin Storsjö2012-02-14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* librtmp: Add "lib" prefix to librtmp URLProtocol declarations.Diego Biurrun2012-02-14
| | | | | | This allows easily differentiating between both implementations within the build system and combining the native implementation for plain RTMP with librtmp for the RTMPE, RTMPS, RTMPT, RTMPTE protocol variants.
* movenc: Use defines instead of hardcoded numbers for RTCP typesMartin Storsjö2012-02-14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* smjpegdec: implement seekingPaul B Mahol2012-02-14
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* rtpdec: Use 4 byte startcodes for H.264Matthew Szatmary2012-02-13
| | | | | | | | If muxing into mpegts, 4 byte startcodes for the first NAL of an access unit is required. Thus it is simplest for the RTP depacketizer to just use 4 byte startcodes everywhere. Signed-off-by: Martin Storsjö <martin@martin.st>
* matroskadec: Mark variable as av_unused.Diego Biurrun2012-02-13
| | | | This avoids unused variable warnings when zlib/bzlib are not available.
* Move some conditionally used variables into the block where they are used.Diego Biurrun2012-02-13
| | | | This allows dropping the av_unused argument from them.
* Drop some completely unnecessary av_unused attributes.Diego Biurrun2012-02-13
|
* movenc: Support muxing wmapro in ismv/ismaMartin Storsjö2012-02-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegtsenc: Add an AVOption for forcing a new PAT/PMT/SDT to be writtenMartin Storsjö2012-02-13
| | | | | | | | When segmenting the output from the mpegts muxer, one can now set this option when cutting to a new segment, to make sure the next segment starts with PAT/PMT/SDT. Signed-off-by: Martin Storsjö <martin@martin.st>
* build: Set correct dependencies for rtmp* protocols implemented by librtmp.Diego Biurrun2012-02-13
|
* lavf: fix aspect ratio mismatch message.Andrey Utkin2012-02-12
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cafdec: Check return value of avio_seek and avoid modifying state if it failsJoakim Plate2012-02-10
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* yop: Check return value of avio_seek and avoid modifying state if it failsJoakim Plate2012-02-10
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* tta: Check return value of avio_seek and avoid modifying state if it failsJoakim Plate2012-02-10
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* tmv: Check return value of avio_seek and avoid modifying state if it failsJoakim Plate2012-02-10
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* r3d: Check return value of avio_seek and avoid modifying state if it failsJoakim Plate2012-02-10
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* nsvdec: Check return value of avio_seek and avoid modifying state if it failsJoakim Plate2012-02-10
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mpc8: Check return value of avio_seek and avoid modifying state if it failsJoakim Plate2012-02-10
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* jvdec: Check return value of avio_seek and avoid modifying state if it failsJoakim Plate2012-02-10
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* filmstripdec: Check return value of avio_seek and avoid modifying state if ↵Joakim Plate2012-02-10
| | | | | | | it fails Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* ffmdec: Check return value of avio_seek and avoid modifying state if it failsJoakim Plate2012-02-10
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* dv: Check return value of avio_seek and avoid modifying state if it failsJoakim Plate2012-02-10
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>