summaryrefslogtreecommitdiff
path: root/libavformat
Commit message (Collapse)AuthorAge
* movenc: Place the sidx index after the initial moov/mdat pairMartin Storsjö2015-08-10
| | | | | | | | | | For fragmented files with non-empty moov, with a fragment index (sidx), place the index after the initial moov/mdat pair. Previously, for this pathological case, the index was written at the start of the file. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Rename reserved_moov_pos to reserved_header_posMartin Storsjö2015-08-10
| | | | | | | The same field is also used for writing the sidx index header, for fragmented files, when the faststart flag is used. Signed-off-by: Martin Storsjö <martin@martin.st>
* movenc: Check that frag_info entries exist in mov_write_sidx_tagMartin Storsjö2015-08-10
| | | | | | | | | | | | | This fixes crashes with pathological cases when trying to write a sidx index (via the -movflags faststart option, in combination with fragmenting options), when no fragments actually have been written. (This is possible if the empty_moov flag isn't used, so that all actual packet data is written in the moov/mdat pair, and no moof/mdat pairs have been written.) In these pathological cases, no sidx should be written at all. Signed-off-by: Martin Storsjö <martin@martin.st>
* asf: Use time_t where neededLuca Barbato2015-08-04
| | | | gmtime takes a time_t not an uint64_t.
* asfdec: read values properlyAlexandra Hájková2015-08-04
| | | | | | | The length of BOOL values is 16 bits in the Metadata Object but 32 bits in the Extended Content Description Object. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* asfdec: prevent the memory leak while reading metadataAlexandra Hájková2015-08-02
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: remove improper assignement that caused wrong timestampsAlexandra Hájková2015-07-31
| | | | | | | | and remove unneeded variable Sample-Id: https://samples.libav.org/asf-wmv/asf-code-53/movn018.asf Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: do not export empty metadataAlexandra Hájková2015-07-31
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: free AVDictionaries properly when closing the demuxerAlexandra Hájková2015-07-31
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rtsp: Only interpret $ as interleaved packet indicator at the start of repliesMartin Storsjö2015-07-30
| | | | | | | | | | | | Allow $ as character anywhere within normal RTSP replies - both within the lines, and as the first character of RTSP header lines. (The existing old comment indicated that an inline packet could start at any line within a RTSP reply header, but that doesn't sound valid to me, and I'm not sure if the existing code handled that correctly either.) CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* hls: Save and forward avio optionsLuca Barbato2015-07-30
| | | | | | Make possible to send the custom headers and override the user agent. Reported-by: BenWonder
* http: Add the trailing endlines if they are missingLuca Barbato2015-07-30
| | | | | Makes slightly easier the life of those want to use the option from the command line
* rtmpproto: free hmac context properlyJames Almer2015-07-30
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* rtmpproto: use AVHMAC instead of a custom implementationJames Almer2015-07-29
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* asfdec: do not align Data Object when Broadcast Flag is setAlexandra Hájková2015-07-27
| | | | | | its size is invalid in this case Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-27
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-27
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: AV-prefix all codec flagsVittorio Giovara2015-07-27
| | | | | | Convert doxygen to multiline and express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* asfdec: interpret the first flag in an asf packet as length flagAlexandra Hájková2015-07-27
| | | | | | if the error correction flag is not set, a packet starts with payload Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: remove the wrong conditionAlexandra Hájková2015-07-23
| | | | | | | | this condition breaks reading from the pipe as data_reached variable have to be set to break while in the asf_read_header just after the Data Object is found Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: increment nb_streams right after the stream allocationAlexandra Hájková2015-07-23
| | | | | | to prevent possible memory leaks Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: set nb_streams to 0 in the asf_read_closeAlexandra Hájková2015-07-23
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: avoid crash in the case when chunk_len is 0 or pkt_len is 0Alexandra Hájková2015-07-22
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: close the demuxer properly when read_header is failingAlexandra Hájková2015-07-22
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: factor out seeking to the Data Object outside whileAlexandra Hájková2015-07-22
| | | | | | return INVALIDDARA if Data Object was not found Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Add a quality factor packet side dataVittorio Giovara2015-07-20
| | | | | | | | This is necessary to preserve the quality information currently exported with coded_frame. Add the new side data to every encoder that needs it, and use it in avconv. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* asfdec: make nb_sub to be unsigned intAlexandra Hájková2015-07-19
| | | | | | number of subpayloads should be always positive Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: read the replicated data in a separate functionAlexandra Hájková2015-07-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: convert condition for the replicated data reading to be saferAlexandra Hájková2015-07-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: do not read replicated data when their length is 0Alexandra Hájková2015-07-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Revert "mov: Double-check that alias path is not an absolute path"Vittorio Giovara2015-07-17
| | | | | | | This reverts commit 9286de045968ad456d4e752651eec22de5e89060. The change broke support for legit absolute file paths. Reported-by: Maksym Veremeyenko <verem@m1stereo.tv>.
* mpegts: Mark the muxer as supporting variable fpsLuca Barbato2015-07-15
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mp3: Forward seeking errorsLuca Barbato2015-07-13
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* asfdec: prevent memory leaks found with Coverity ScanAlexandra Hájková2015-07-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* asfdec: always reset packet state after seekingHendrik Leppkes2015-07-12
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* riff: Validate bitrateAndreas Cadhalpun2015-07-11
|
* mp3: Make the seek more robustLuca Barbato2015-07-11
| | | | | | Try to parse up to 4 packets to find the closest packet. Reported-By: jan.schlueter@ofai.at
* riff: Use the correct logging contextLuca Barbato2015-07-11
|
* asfdec: Fix reading from the pipeAlexandra Hájková2015-07-10
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavf/hevc: pad the RBSP buffer as required by the bistream readerAnton Khirnov2015-07-08
|
* mpjpeg: Write the Content-lengthFrank Heckenbach2015-07-04
|
* mpjpeg: Simplify using avio_printfLuca Barbato2015-07-04
|
* lavc: Move deprecation warning disabling to files including the tableVittorio Giovara2015-07-03
| | | | | | Unbreak build from 7a5902c556d84a367dd64a003a4e7244fc3a73d1. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* asfdec: prevent the infinite loop in detect unknown_subobjectAlexandra Hájková2015-07-03
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* asfdec: prevent possible memory leak in the asf_read_metadata_objAlexandra Hájková2015-07-03
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: Log format rather than fourcc in stsd in trace modeVittorio Giovara2015-07-01
| | | | This will fix remaining format warnings.
* mov: Adjust variable types to fix format warningsVittorio Giovara2015-07-01
|
* dump: Use the correct abs() versionVittorio Giovara2015-07-01
| | | | | | Fix warning from clang "absolute value function 'abs' given an argument of type 'long long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]".
* mov: Preserve the metadata even when bit-exactness is requestedLuca Barbato2015-06-30
| | | | | | | Make sure to not write the custom `encoder` string in that case. Bug-Id: 845 CC: libav-stable@libav.org
* mpegts: Add jpeg2000 stream typeJohn Högberg2015-06-30
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>