summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
...
* 4xm: Check that the read track value is non-negativeMartin Storsjö2013-09-03
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* matroskadec: Check that .lang was allocated and set before reading itMartin Storsjö2013-09-03
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Don't flush after each written packetMartin Storsjö2013-09-03
| | | | | | | | | | This should improve write performance quite significantly. --- Tested with both writing a normal mp4, by using the faststart feature and writing a fragmented mp4 file; all turn out with the same md5sum as before. Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Fix ATRAC codec name spellingDiego Biurrun2013-09-02
|
* ape demuxer: check for EOF in potentially long loopsAnton Khirnov2013-09-02
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* 4xm: check that bits per sample is strictly positiveAnton Khirnov2013-09-02
| | | | | | | Avoids a divide by zero. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* lavf: avoid integer overflow when estimating bitrateAnton Khirnov2013-09-02
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* lavf: move a variable declaration to the block where it's usedAnton Khirnov2013-09-02
|
* pcm_dvd: consolidate pieces from pcm.c and mpeg.cChristian Schmidt2013-08-31
| | | | | | | | | | | | | | | | | | | | Remove the header decoding for PCM audio from mpeg.c and the 20/24bit parts from pcm.c and merge them into a new decoder in pcm-dvd.c. The decoder has added support for samples that span multiple packets and modified 20/24bit group decoding. Both is needed to decode samples that have been generated with DVD-Lab Pro 2. The decoding of 16bit PCM and two channel 24bit is identical to before. No other samples are known to verify the correctness of the encoding this software does. The complete list of tested formats is 48kHz/16bit/2-8 channels 48kHz/24bit/2-5 channels 96kHz/16bit/2-4 channels 96kHz/24bit/2 channels Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* rtmpproto: Fix limelight authentication with abbreviated app namesMartin Storsjö2013-08-28
| | | | | | | | | When streaming to limelight, the app name is either a full "appname/subaccount" or "appname/_definst_". In the latter case, the app name can be simplified into simply "appname", but the authentication hashing assumes the /_definst_ still to be present. Signed-off-by: Martin Storsjö <martin@martin.st>
* smoothstreamingenc: Write to a temp file while updating the manifestMartin Storsjö2013-08-27
| | | | | | | | If a client tries to read the file while it's being updated, the client would get an incomplete manifest. Instead write to a separate temp file and atomically rename it to replace the previous one. Signed-off-by: Martin Storsjö <martin@martin.st>
* flv: Fix the help stringLuca Barbato2013-08-27
|
* matroskaenc: Fix writing TRACKDEFAULTFLAGJohn Stebbins2013-08-27
| | | | | | | | The element was only being written when the value == 1. But the default value of this element is 1, so this has no useful effect. This element needs to be written when the value == 0. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* movenc: Check for errors from mov_create_chapter_trackMartin Storsjö2013-08-27
| | | | | | | | | | | On failures in the write_trailer function, we could also ignore the errors and try to finish the file despite these errors (which would only leave an incomplete chapters track). It's probably better to signal the error clearly to the caller though (and if this function failed there's no guarantee that there's enough memory to finish the trailer either). Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Properly free allocated data on failures in mov_write_headerMartin Storsjö2013-08-27
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Check that tracks->enc exists before trying to free extradataMartin Storsjö2013-08-27
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Check for allocation failures in mov_create_chapter_trackMartin Storsjö2013-08-27
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: Write tmcd extradataLuca Barbato2013-08-25
|
* mov: Parse tmcd extradataLuca Barbato2013-08-25
|
* mov: Refactor multiple stsd skipping in mov_mov_skip_multiple_stsdLuca Barbato2013-08-24
|
* mov: Refactor codec specific final steps in mov_finalize_stsd_codecLuca Barbato2013-08-24
|
* mov: Refactor subtitle specific parsing in mov_parse_stsd_subtitleLuca Barbato2013-08-24
|
* mov: Refactor audio specific parsing in mov_parse_stsd_audioLuca Barbato2013-08-24
|
* mov: Refactor video specific parsing in mov_parse_stsd_videoLuca Barbato2013-08-24
|
* mov: Refactor codec id selection in mov_codec_idLuca Barbato2013-08-24
|
* movenc: Make tkhd "enabled" flag QuickTime compatibleJohn Stebbins2013-08-23
| | | | | | | | QuickTime will play multiple audio tracks concurrently if this flag is set for multiple audio tracks. And if no subtitle track has this flag set, QuickTime will show no subtitles in the subtitle menu. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mov: use tkhd enabled flag to set the default trackJohn Stebbins2013-08-23
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* movenc: fix detection of 64bit offset requirementClément Bœsch2013-08-21
| | | | | | The old method doesn't work when moov is relocated to beginning of file Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Make chapter track QuickTime compatibleJohn Stebbins2013-08-21
| | | | | | QuickTime requires that the stsd.text box be completely filled in. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: add faststart option for web streamingClément Bœsch2013-08-21
| | | | | | | Faststart moves the moov atom to the beginning of the file and rewrites the rest of the file after muxing is complete. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Allow chapters to be written in trailerJohn Stebbins2013-08-20
| | | | | | | | This allows creation of frame accurate chapter marks from sources like DVD and BD where the precise chapter location is not known until the chapter mark has been reached during reading. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Allow chapter track in default MODE_MP4John Stebbins2013-08-20
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avformat: Fix references to removed av_close_input_file in DoxygenDiego Biurrun2013-08-20
|
* mov: Prevent segfaults on mov_write_hdlr_tagLuca Barbato2013-08-20
| | | | | Do not segfault when writing tracks such as tmcd by writing them down as generic DataHandlers if not known.
* mov: Compute max duration among the tracks with a timescaleLuca Barbato2013-08-20
| | | | Prevent an assert.
* mov: Set the timescale for data streamsLuca Barbato2013-08-20
| | | | Data streams have a defined timebase, do not ignore it.
* mkv: Allow flushing the current cluster in progressMartin Storsjö2013-08-19
| | | | | | | | Allow emitting the current cluster that is being written before starting a new one, simplifying how to figure out where clusters are positioned in the output stream (for live streaming). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mkv: Flush the old cluster before writing a new oneLuca Barbato2013-08-19
| | | | | | | This simplifies keeping track of cluster boundaries for e.g. livestreaming of WebM. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mkv: Add options for specifying cluster limitsLuca Barbato2013-08-19
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mkv: Refactor mkv_write_packetLuca Barbato2013-08-19
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* ogg: Fix potential infinite discard loopReimar Döffinger2013-08-19
| | | | | | | | | | | | Seeking in certain broken files would cause ogg_read_timestamp to fail because ogg_packet would go into a state where all packets of stream 1 would be discarded until the end of the stream. Bug-Id: 553 CC: libav-stable@libav.org Signed-off-by: Jan Gerber <j@v2v.cc> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* movenc: Indicate that negative timestamps are supportedMartin Storsjö2013-08-17
| | | | | | | | | | | | | The mov/mp4 muxer has support for handling negative timestamps via edit lists (which customarily is used for handling the 1-frame delay due to B-frames as well). Using the muxer's native way of handling it is better than using the generic offsetting. The generic offsetting is a bit too crude when e.g. the timebase of one track is 1/fps, where the edit lists can handle it accurately. Signed-off-by: Martin Storsjö <martin@martin.st>
* hlsenc: Don't reset the number variable when wrappingCarl Eugen Hoyos2013-08-15
| | | | | | | | The counter itself shouldn't be wrapped, since it is used for determining end_pts for the next segment - only wrap the number used for the segment file name. Signed-off-by: Martin Storsjö <martin@martin.st>
* hlsenc: Append the last incomplete segment when closing the outputStefano Sabatini2013-08-15
| | | | | | | Also avoid comparing NOPTS values. Bug-id: 551 Signed-off-by: Martin Storsjö <martin@martin.st>
* hlsenc: Add a proper dependency on the mpegts muxerMartin Storsjö2013-08-15
| | | | | | | | | The hls muxer itself doesn't have any direct (object file level) dependencies on mpegtsenc.o, and including that object file directly doesn't ensure that it is registered so that the muxer actually is accessible. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpproto: Check the right feature detection macroMartin Storsjö2013-08-15
| | | | | | | | IPPROTO_IPV6 is unrelated here (it's only used in udp.c for multicast sockopts), check for support for the sockaddr_in6 struct itself. Signed-off-by: Martin Storsjö <martin@martin.st>
* electronicarts: Let functions always returning the same value return voidDiego Biurrun2013-08-15
|
* electronicarts: Improve some function/variable namesDiego Biurrun2013-08-15
|
* electronicarts: comment wording fixesDiego Biurrun2013-08-15
|
* electronicarts: Remove bogus function documentationDiego Biurrun2013-08-15
|