summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* bink: return AVERROR_EOF upon reaching end of filePeter Ross2012-11-21
| | | | | | | | Fixes ticket #1935. Signed-off-by: Peter Ross <pross@xvid.org> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* cdxl: use url_feof()Paul B Mahol2012-11-21
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* rawenc: cosmetics: reindentPaul B Mahol2012-11-21
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* sierravmd: signal EOFPiotr Bandurski2012-11-21
|
* cafdec: return right code if EOF is reachedPaul B Mahol2012-11-21
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* thp: signal EOFPiotr Bandurski2012-11-21
|
* rpl: return AVERROR_EOF instead of -1Piotr Bandurski2012-11-21
|
* lavf/hls: whitespace cosmetics after 23db5418.Clément Bœsch2012-11-21
|
* lavf: move libmodplug registration with the other ext lib.Clément Bœsch2012-11-21
| | | | Also remove the duplicated #if.
* hls: create an AVProgram for each variantLYF2012-11-21
| | | | | | | | | | Without the information, application may choose audio from one variant and video from another variant, which leads to fetch two variants from network. This enables av_find_best_stream() to find matching audio and video streams, so that only one variant is fetched from network. Signed-off-by: LYF <yefei.li@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavf/segment: fix value for the M3U8 EXT-X-MEDIAStefano Sabatini2012-11-20
| | | | | | | | | From the M3U8 specification: |The EXT-X-MEDIA-SEQUENCE tag indicates the sequence number of the first |URI that appears in a Playlist file. Previously it was using the list index number. Also remove now unused list_count field.
* lavf/segment: do not pre-increment segment_idx valueStefano Sabatini2012-11-20
| | | | | Increment the value just when a new segment with the given index is started. Simplify logic, improve readability.
* lavf/segment: unbreak behavior for segment muxerStefano Sabatini2012-11-20
| | | | | | | | The segment muxer presumes the use of AVFMT_GLOBALHEADER, ssegment should be use in case of formats which requires no global headers. Regression introduced when merging 0826d8513d14f54da0b519360813327d5836b7fc.
* lavf/segment: consistently use "seg" in segment_start()Stefano Sabatini2012-11-20
|
* lavf/srtdec: trim line break event separators from packet.Clément Bœsch2012-11-20
| | | | | | | | | | | | | The muxer add them automatically, so this avoid having a bunch of line breaks all over the output files. One '\n' is still kept/added because the lavc subrip decoder seems to have trouble with line ending abruptly (it doesn't flush correctly the tags). This bug is harmless but should be fixed; though, this doesn't look like a trivial change. When this bug gets fixed, we can consider removing the '\n' at the end of the packet. The 2048B buffer limit was also removed while moving to AVBPrint API. Note that this doesn't really matter since the decoder is limited as well.
* Add -skip_initial_bytes option.Carl Eugen Hoyos2012-11-20
| | | | Fixes ticket #1909.
* Correctly signal EOF when demuxing caf files.Carl Eugen Hoyos2012-11-20
|
* lavf/segment: do not copy codec_tag when not availableChanMin Kim2012-11-20
| | | | | | | | | | | | | | Some muxers do not allow stream if codec_tag is incompatible. Sometimes the passed input codec's codec_tag is not compatible with the output muxer. Because the codec_tag field of the segment muxer cannot be set, ffmpeg.c doesn't know how to handle these cases. Signed-off-by: ChanMin Kim <kcm1700@gmail.com> Signed-off-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* oggdec: fix memleak on header parsing failureMichael Niedermayer2012-11-20
| | | | | | Fixes Ticket1931 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* iff: DEEP RLE 32-bit decoderPeter Ross2012-11-20
| | | | | | Fixes ticket #1046. Signed-off-by: Peter Ross <pross@xvid.org>
* Allow use of @ character in username and passwords embedded in URLsGavin Kinsey2012-11-19
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* nut: add tag for PCM signed 8-bit planarPaul B Mahol2012-11-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* Support iLBC in caf.Carl Eugen Hoyos2012-11-19
|
* lavf: let av_find_best_stream use bitrate info if availableMarton Balint2012-11-18
| | | | | | | | | | | | | | | | | I guess the user expects to see the stream with the highest bitrate, not with the most frames, this is especially useful for multi bitrate streams. This patch changes av_find_best_stream to select the stream based on a number of conditions, the first condition has the highest priority, the last condition has the lowest: 1) Select the stream with the highest FFMIN(5, codec_info_nb_frames) value 2) Select the stream with the highest bitrate 3) Select the stream with the highest codec_info_nb_frames 4) Select the first stream Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* iff: process DEEP DLOC chunk to obtain image dimensionsPeter Ross2012-11-18
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* iff: recognise more DEEP colorspacesPeter Ross2012-11-18
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ast: check bit depth tooPaul B Mahol2012-11-18
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* img2enc: remove dead codePaul B Mahol2012-11-18
| | | | | | | Nothing in lavc sets extradata for such codec and this is wrong place for it anyway. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* Fix possible NULL-pointer dereference when decoding mov files.Carl Eugen Hoyos2012-11-18
| | | | Fixes CID743440, introduced in 850e5c0.
* smush: check audio packet sizePaul B Mahol2012-11-17
| | | | | | Fixes null pointer dereference. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* electronicarts: check size before reading duration out of a chunk.Michael Niedermayer2012-11-17
| | | | | | | Fixes null pointer dereference Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* AST demuxerPaul B Mahol2012-11-17
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* PCM signed 16-bit big-endian planar decoderPaul B Mahol2012-11-17
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lxfdec: remove deplanarization hackPaul B Mahol2012-11-17
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* PCM signed 24-bit/32-bit little-endian planar decoderPaul B Mahol2012-11-17
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* flvdec: disable hack that attempts to parse aac bitstream in the flv demuxer.Michael Niedermayer2012-11-17
| | | | | | | | | I was unable to find a file that needs this hack, if you have one please contact us! Fixes out of array accesses. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavf/avienc: return proper error codes, and provide some more feedbackStefano Sabatini2012-11-17
|
* mxfdec: fix potential integer overflow in mxf_compute_sample_count()Michael Niedermayer2012-11-17
| | | | | Fixes CID743442 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* mxfdec: set audio packets ptsMatthieu Bouron2012-11-16
| | | | | | | Also fix playback of ntsc files. Reviewed-by: Tomas Härdin <tomas.hardin@codemill.se> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* mov: add more udta meta data recognitionXidorn Quan2012-11-16
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavf/mp3enc: make sure the header is valid before writing audio pkt.Clément Bœsch2012-11-16
| | | | | An invalid header can lead avpriv_mpegaudio_decode_header() to overread and/or div by zero.
* Read QuickTime version 1 audio fields in broken mov files.Carl Eugen Hoyos2012-11-15
| | | | | | | | Matrox XMIO capture boards write files with major brand "JUNK" and compatible brand "qt " that contain QuickTime version 1 audio fields. Fixes ticket #1881.
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-11-15
|\ | | | | | | | | | | | | | | | | | | | | * qatar/master: bgmc: Fix av_malloc checks in ff_bgmc_init() rtp: set the payload type as stream id Conflicts: libavformat/rtpenc_chain.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * rtp: set the payload type as stream idLuca Barbato2012-11-14
| | | | | | | | | | | | | | Support multiple video/audio streams with different format in the same session. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '3b4296f41473a5b39e84d7a49d480624c9c60040'Michael Niedermayer2012-11-15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3b4296f41473a5b39e84d7a49d480624c9c60040': avformat: clarify stream id for muxing fate: Add dependencies for aac, alac, amrnb, amrwb, atrac tests ppc: do not pass redundant compiler flags avutil: change GET_UTF8 to not use av_log2() segment: fix NULL pointer dereference in seg_write_header() Conflicts: tests/fate/aac.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avformat: clarify stream id for muxingLuca Barbato2012-11-14
| |
| * segment: fix NULL pointer dereference in seg_write_header()Xi Wang2012-11-14
| | | | | | | | | | | | | | | | Since the pointer `oc' is NULL, oc->oformat->name will cause a null pointer dereference. This patch changes it to seg->oformat->name. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* | xwma: check bytes_per_sample, fix division by 0.Michael Niedermayer2012-11-15
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Add missing dependency for avr demuxerPaul B Mahol2012-11-14
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | mov: Dont try to calculate with unknown durations, fix division by 0Michael Niedermayer2012-11-14
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>