aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
* mxfdec: Add intra_only flag to MXFTrackTomas Härdin2012-07-101-0/+23
| | | | | | | This allows future assumptions to be made without affecting non-intra files. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mxfdec: fix Avid AirSpeed files being misinterpreted as OP1aTomas Härdin2012-07-101-5/+9
| | | | | | | | | The "ECs != 1 -> OP1a" assumption was wrong. Luckily, the file that triggered that behavior had two ECs, not zero. Hence distinguishing between them is simple in this case. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mxfdec: truncate packets that extend past the next edit unitTomas Härdin2012-07-101-15/+50
| | | | | | | | This fixes rare cases where OPAtom may be treated as OP1a, causing all essence to be read into RAM. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mxfdec: set pixel format for cdci picture formatsPhilip de Nier2012-07-103-1/+37
| | | | | | | | | | | | | | | | | | The properties of the CDCI Descriptor are insufficient to specify the pixel format for uncompressed picture data. SMPTE 377-1 and RP224v10 have defined a set of picture coding labels to indicate what formatting was used. This patch uses 2 labels to detect UYVY422 or YUYV422 pixel formats. It defaults to UYVY422 for 8-bit 4:2:2 pictures to support files that were created before the coding labels were introduced ~2008 The codec pix_fmt default was changed from 0 (PIX_FMT_YUV420P) to -1 (PIX_FMT_NONE) Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* mxfdec: detect uncomp pictures using essence container ulPhilip de Nier2012-07-101-0/+1
| | | | | | | | | | This supports detection of uncompressed picture in files that didn't include a Picture Coding Label. The lables weren't available until SMPTE 377-1 and RP224v10 Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mxfdec: set track edit rate num/den in expected orderPhilip de Nier2012-07-101-2/+2
| | | | | | | | This matches the order used for the index table edit rate. Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* tcp: add initial timeout limit for incoming connectionsJordi Ortiz2012-07-091-1/+10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* matroskadec: honor error_recognition when encountering unknown elements.Anton Khirnov2012-07-091-1/+4
|
* id3v2: add a mimetype for bmp pictures.Anton Khirnov2012-07-071-0/+1
|
* flacdec: be less strict when parsing attached pictures.Anton Khirnov2012-07-071-7/+18
| | | | | | Only return an error if memory allocation fails or error recognition is set to explode. Otherwise just print an error message and continue reading the file.
* flacdec: don't create an attached picture stream until we have all information.Anton Khirnov2012-07-071-4/+6
| | | | | This way we don't end with an invalid stream if parsing the picture fails.
* mxfdec: replace x>>av_log2(sizeof(..)) by x/sizeof(..).Ronald S. Bultje2012-07-071-4/+4
| | | | | | Also replace x>>av_log2(sizeof(..)) + 1 by x/sizeof(..). The +1 is probably meant to emulate av_log2_ceil(sizeof(..)) in cases where ".." is not a power of two.
* flvdec: Treat all nellymoser versions as the same codecMartin Storsjö2012-07-051-4/+0
| | | | | | | | This avoids creating new AVStreams for them when switching between different variants of them, since we can handle changes between different sample rates of nellymoser within the same stream. Signed-off-by: Martin Storsjö <martin@martin.st>
* flvdec: optionally trust the metadataLuca Barbato2012-07-051-0/+35
| | | | | In certain conditions video or audio frames might appear way later in the stream.
* mov: use forward declaration of a function instead of a table.Ronald S. Bultje2012-07-041-74/+74
| | | | | MSVC gives a compile error on the tentative definition of mov_default_parse_table[].
* Clarify Doxygen comment for FF_API_* #defines.Diego Biurrun2012-07-041-2/+4
|
* misc typo and wording fixesDiego Biurrun2012-07-032-2/+2
|
* flvdec: initial stream switch supportLuca Barbato2012-07-031-4/+91
| | | | Codec change midstream gets mapped to a separate stream.
* asfdec: read attached pictures.Anton Khirnov2012-07-021-0/+99
|
* apetag: reindentAnton Khirnov2012-07-021-9/+9
|
* apetag: export attached covers as video streams.Anton Khirnov2012-07-021-1/+24
|
* apetag: fix the amount of data read from binary tags.Anton Khirnov2012-07-021-1/+6
| | | | Substract the filename size from the data size.
* apetag: make sure avio_get_str() doesn't read more than it should.Anton Khirnov2012-07-021-1/+1
|
* mov: read itunes cover art.Anton Khirnov2012-07-021-0/+50
|
* MS ATC Screen (aka MSS3) decoderKostya Shishkov2012-07-021-0/+1
|
* os_support: Add fallback definitions for stat flagsRonald S. Bultje2012-06-301-0/+9
| | | | | | | | Mingw headers provide similar defines already (unconditional #defines, without any #undef or #ifdef around it), while MSVC doesn't have them. Signed-off-by: Martin Storsjö <martin@martin.st>
* os_support: Rename the poll fallback function to ff_pollMartin Storsjö2012-06-302-2/+3
| | | | | | | | | | | | The fallback function is a non-static function, we shouldn't be defining non-static functions outside of the proper ff/av prefix namespaces. This is especially important for a function like poll, which other parties (other libraries, or executables linking these libraries) also might provide similar but incompatible fallbacks for. Signed-off-by: Martin Storsjö <martin@martin.st>
* network: Check for struct pollfdMartin Storsjö2012-06-301-0/+5
| | | | | | | | We need to include winsock2.h here, to make sure we have the real pollfd struct definition, if one exists, before defining the fallback poll function. Signed-off-by: Martin Storsjö <martin@martin.st>
* os_support: Don't compare a negative number against socket descriptorsMartin Storsjö2012-06-301-6/+6
| | | | | | | | The fds are unsigned integers in the windows definition of struct sockfds. Due to this, the comparison if (fds[i].fd > n) was always false. Signed-off-by: Martin Storsjö <martin@martin.st>
* os_support: Include all the necessary headers for the win32 open functionRonald S. Bultje2012-06-301-1/+3
| | | | | | | | | | | | | io.h is required for open and _wopen, and fcntl.h is required for the O_CREAT flag. On mingw, fcntl.h is included by os_support.h (and the mingw fcntl.h includes io.h), but include it explicitly here since this implementation requires it. Also move the #undef open up. open must not be defined to ff_win32_open while including the headers that declare the open function. On mingw, this happened in os_support.h before open was redirected. Signed-off-by: Martin Storsjö <martin@martin.st>
* file: Only include unistd.h if it existsRonald S. Bultje2012-06-291-1/+3
| | | | | | | | | | | | It is included for the open/read/write/close functions. On MSVC, where this header does not exist, the same functions are provided by io.h, which is already included. On windows, these functions are provided by io.h. Make sure io.h is included if it exists, regardless of the setmode function. Signed-off-by: Martin Storsjö <martin@martin.st>
* rtpdec: Don't explicitly include unistd.h any longerRonald S. Bultje2012-06-291-1/+0
| | | | | | | | unistd.h used to be required for gethostname. On windows, gethostname is provided by winsock2.h. Now network.h includes both unistd.h and winsock2.h if they exist. Signed-off-by: Martin Storsjö <martin@martin.st>
* flv: add support for G.711Damien Fetis2012-06-283-0/+18
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* flvenc: K&R formatting cosmeticsLuca Barbato2012-06-281-132/+142
|
* movenc: Add channel layouts for PCM.Alex Converse2012-06-271-0/+26
|
* udp: Support IGMPv3 source specific multicast and source blockingMartin Storsjö2012-06-271-1/+113
| | | | | | Based on an original patch by Stephen D'Angelo <SDAngelo@evertz.com>. Signed-off-by: Martin Storsjö <martin@martin.st>
* tcp: Pass NULL as hostname to getaddrinfo if the string is emptyJordi Ortiz2012-06-271-1/+4
| | | | | | | This gives you the proper v4 or v6 version of the "any address", allowing receiving connections on any address on the machine. Signed-off-by: Martin Storsjö <martin@martin.st>
* tcp: Set AI_PASSIVE when the socket will be used for listeningJordi Ortiz2012-06-271-0/+2
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* mpc8: read APE tags.Anton Khirnov2012-06-262-1/+8
|
* network: Don't redefine error codes if they already exist in errno.hRonald S. Bultje2012-06-262-0/+17
| | | | | | | | Since the errno.h values don't match the error codes that winsock returns, map the winsock error codes to the errno ones, to make sure explicit checks against AVERROR(x) match. Signed-off-by: Martin Storsjö <martin@martin.st>
* configure: Check for sys/time.hRonald S. Bultje2012-06-261-0/+2
| | | | | | | | Apparently this include is needed on some systems for building the poll fallback (for the timeval struct for select?), but it isn't available on all systems. Thus only include it if it exists. Signed-off-by: Martin Storsjö <martin@martin.st>
* network: Include unistd.h from network.hMartin Storsjö2012-06-264-3/+4
| | | | | | | | | | | This heaader is required for close() for sockets in network code. For winsock, the equivalent function is defined in the winsock2.h header. This avoids having the HAVE_UNISTD_H in all files dealing with raw sockets. Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: do not try to read total disc/track number if data atom is too short.Carl Eugen Hoyos2012-06-261-2/+3
| | | | | | Fixes bug 308. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* wtv: Check the return value from gmtimeMartin Storsjö2012-06-251-3/+15
| | | | | | | | On MSVC, gmtime returns NULL for values outside of their supported range (and these show up in our fate test). This doesn't seem to affect the actual fate test result. Signed-off-by: Martin Storsjö <martin@martin.st>
* ape: create audio stream before reading tags.Anton Khirnov2012-06-241-6/+6
| | | | | | | Tags may contain attached picture, which will be exported as video streams. This ensures that the audio stream is always the first.
* mov: make a length variable larger.Anton Khirnov2012-06-241-2/+2
| | | | | Right now, it's uint16_t, but for itunes metadata a 32bit number is stored in it.
* image2: Add "start_number" private option to the demuxerMashiat Sarker Shakkhar2012-06-241-3/+6
| | | | | | | Currently if a pattern is given we look for up to the fifth file name in the sequence. This option sets that limit to an arbitrary number. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* image2: Add "start_number" private option to the muxerMashiat Sarker Shakkhar2012-06-241-2/+18
| | | | | | | | | This adds the capability to start counting file number from an arbitrary integer. This includes a few lines of trivial code from FFmpeg codebase. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace usleep() calls with av_usleep()Mans Rullgard2012-06-224-10/+8
| | | | | | | This reduces the dependency on unistd.h which is not available on all systems. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: include libavutil/time.h instead of redeclaring av_gettime()Mans Rullgard2012-06-211-4/+4
| | | | | | This avoids some warnings about redundant declarations. Signed-off-by: Mans Rullgard <mans@mansr.com>