summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* mfxdec: Separate mxf_essence_container_uls for audio and video.Carl Eugen Hoyos2012-01-22
| | | | | | | | | It is a really bad idea to assign a video codec id when we have set codec_type to audio and vice versa. Prevents detection of mp2 in mxf as mpeg2video. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mxfdec: Compute packet offsets properly.Tomas Härdin2012-01-22
| | | | | | This replaces the old essence_offset code. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mxfdec: Use MaterialPackage - Track - TrackID instead of the system_item hack.Tomas Härdin2012-01-22
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mxfdec: use av_dlog() for 'no corresponding source package found'Tomas Härdin2012-01-22
| | | | | | This is not an error and expected behavior for OPAtom files. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mxfdec: Make mxf->partitions sorted by offset.Tomas Härdin2012-01-22
| | | | | | This also zeroes new entries for good measure (used by future patches). Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mxfdec: parse ThisPartitionTomas Härdin2012-01-22
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mxfdec: Speed up metadata and index parsing.Tomas Härdin2012-01-22
| | | | | | | | | | | | | Specifically, this means parsing as before until we run into essence. At that point we seek to the footer and parse until EOF. After that we start seeking backward to the previous partition and parse that until we run into essence or the next partition. This procedure is repeated until we encounter the last partition we parsed in the forward direction. The end result of all this is that large essence containers are not needlessly parsed. This speeds up parsing large files a lot. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mxfdec: Make sure DataDefinition is consistent between material track and ↵Tomas Härdin2012-01-22
| | | | | | | | | source track. This fixes 0001GL.MXF.V1.mxf_opatom.mxf and 0001GL00.MXF.A1.mxf_opatom.mxf getting two streams each due to both using the same SourcePackageID. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mxfdec: add EssenceContainer UL found in 0001GL00.MXF.A1.mxf_opatom.mxfTomas Härdin2012-01-22
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mxfdec: Add hack that adjusts the n_delta calculation when system items are ↵Tomas Härdin2012-01-22
| | | | | | present. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mxfdec: Parse IndexTableSegments and convert them into AVIndexEntry arrays.Janne Grunau2012-01-22
| | | | | | | Based on patch from Tomas Härdin <tomas.hardin@codemill.se> and work by Georg Lippitsch <georg.lippitsch@gmx.at> Changed av_calloc to av_mallocz and added overflow checks.
* mxfdec: Move FooterPartition to MXFContext and make sure it is never zero.Tomas Härdin2012-01-22
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mxfdec: check return value of avio_seekJoakim Plate2012-01-22
| | | | | | Avoid modifying state if avio_seek fails. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mxfdec: skip to end of structural setsPhilip de Nier2012-01-22
| | | | | | | | This fixes reading of partition packs. The code stops reading after the operational pattern and should skip the array of essence container labels that follow. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* mxfdec: parse MXF partitionsTomas Härdin2012-01-22
|
* avserver: fix build after the next bump.Anton Khirnov2012-01-22
| | | | | | | Now that 0.8 is out we can reapply this commit. It breaks shared avserver builds due to avserver using internal libavformat symbols, which are now hidden, so this commit also disables avserver with --enable-shared.
* rtsp: Use a random offset for trying to open UDP ports for RTPDmitry Volyntsev2012-01-22
| | | | | | | | | | | | | | This avoids (for all practical cases) the issue of reusing the same UDP port as for an earlier connection. If the remote doesn't know the previous session was closed, he might keep on sending packets to that port. If we always start off trying to open the same UDP port, we might get those packets intermixed with the new ones. This is occasionally an issue when testing RTSP stuff with DSS, perhaps also with other servers. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Allow specifying the UDP port range via AVOptionsMartin Storsjö2012-01-22
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Remove a leftover, currently pointless checkDmitry Volyntsev2012-01-22
| | | | | | | | This check isn't relevant in the way the code currently works. Also change a case of if (x == 0) into if (!x). Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Use our own SSRC in the SDES field when sending RRsMartin Storsjö2012-01-21
| | | | | | | | | | | | | | | The s->ssrc field is the sender's SSRC, we use ssrc + 1 to get a collision free "unique" SSRC for ourselves in the RR part. The SDES block in the RTCP packet should describe ourselves, not the sender. This was fixed for the RR part in 952139a3226b, but wasn't fixed for the SDES part until now. This could cause some Axis cameras to send RTCP BYE packets to us due to the SSRC collision. Signed-off-by: Martin Storsjö <martin@martin.st>
* Finalize changelog for 0.8 ReleaseReinhard Tartler2012-01-21
|
* Prepare for 0.8 ReleaseReinhard Tartler2012-01-21
|
* threads: change the default for threads back to 1Janne Grunau2012-01-21
| | | | | | Using threaded decoding by default breaks backward compatibility if AVHWAccel is used or if an appliction sets threadunsafe callbacks. Avconv and avplay still use -threads auto if not specified.
* threads: update slice_count and slice_offset from user contextJanne Grunau2012-01-21
| | | | | They are used to signal the number of slices and offsets of each slice out of band to the decoder.
* aviocat: Remove useless includesMartin Storsjö2012-01-21
| | | | | | | Also include stdlib.h explicitly - currently it is used implicitly via avformat.h. Signed-off-by: Martin Storsjö <martin@martin.st>
* doc/APIChanges: fill in missing dates and hashesAnton Khirnov2012-01-21
|
* Revert "avserver: fix build after the next bump."Anton Khirnov2012-01-21
| | | | | | | This temporarily (until 0.8 is released) reverts commit 8e1340abc316e038bb89e5a3b46e92ff58c98a88. That commit breaks shared builds because of symbol hiding. Reverting it will enable shared builds for 0.8
* mpegaudiodec: switch error detection check to AV_EF_BUFFERDustin Brody2012-01-21
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: rename fer option and document resulting (f_)err_detect optionsDustin Brody2012-01-21
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: rename err_filter option to err_detect and document itDustin Brody2012-01-21
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: fix invalid memory access for small video dimensionsJohn Brooks2012-01-21
| | | | | | | | | | When either video dimension is only one macroblock, subtractions based on v_edge_pos and the macroblock size may be negative. In that situation, an unsigned comparison isn't sufficent to test for MV overruns, because a limit of (unsigned)-1 will let any other value pass. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* movenc: Reorder entries in the MOVIentry struct, for tigheter packingMartin Storsjö2012-01-21
| | | | | | | | | | | | | Originally, sizeof(struct MOVIentry) was 48, after the reordering, it is 40 in my build configuration. When writing really long mov/mp4 files, this can make a difference - this saves a bit over 2 MB of memory per hour of video (down to 10.3 MB per hour from 12.3 MB per hour initially) for a video with 75 packets per second - 25 fps + 50 audio packets (which is the case for AMR audio). Signed-off-by: Martin Storsjö <martin@martin.st>
* rtsp: Remove extern declarations for variables that don't existMartin Storsjö2012-01-21
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* aviocat: Flush the output before closingMartin Storsjö2012-01-21
| | | | | | Without this, the end of the file might not be transmitted/written. Signed-off-by: Martin Storsjö <martin@martin.st>
* Add a tool that uses avio to read and write, doing a plain copy of dataMartin Storsjö2012-01-20
| | | | | | | It also optionally can throttle its operation to a particular speed, to simulate realtime writing. Signed-off-by: Martin Storsjö <martin@martin.st>
* ARM: fix build with FFT enabled and MDCT disabledFelipe Contreras2012-01-20
| | | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: force single-threaded decoding in avformat_find_stream_infoJanne Grunau2012-01-20
| | | | | | | The H.264 decoder needs SPS and PPS for initialization during multi-threaded decoding. When probed single-threaded SPS and PPS are copied to extradata and are available for proper initialization of the decoder before the first frame is decoded.
* avidec: migrate last of lavf from FF_ER_* to AV_EF_*Dustin Brody2012-01-20
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avserver: fix build after the next bump.Anton Khirnov2012-01-20
|
* mpeg12: check for available bits to avoid an infinite loopJindřich Makovička2012-01-19
| | | | | Signed-off-by: Jindrich Makovicka <makovick@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* fate: add some shorthands to run groups of testsDiego Biurrun2012-01-19
|
* fate: Give some tests more sensible names.Diego Biurrun2012-01-19
|
* cosmetics: Rename ffsink to avsink.Diego Biurrun2012-01-19
|
* avprobe, cmdutils: K&R formatting cosmeticsGaurav Narula2012-01-18
|
* tests: K&R formatting cosmetics for test programsGaurav Narula2012-01-18
|
* lavf: free packets for muxers implementing interleave_packet().Anton Khirnov2012-01-18
| | | | Fixes a memleak.
* lavf: fix and extend av_interleaved_write_frame() doxy.Anton Khirnov2012-01-18
| | | | Specify that lavf is responsible for freeing the data.
* mov: Remove dead stores for spherical coordinates for channel position.Alex Converse2012-01-18
|
* error_resilience: K&R formatting cosmeticsDonald Ovcharov2012-01-18
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* RELEASE_NOTES: mention hiding private symbols in shared builds.Anton Khirnov2012-01-18
|