https://github.com/libav/libav

sort by:
Revision Author Date Message Commit Date
1cc6fef Prepare for 11.1 Release 02 December 2014, 02:39:37 UTC
60ccc1a Update changelog for v11.1 02 December 2014, 02:39:01 UTC
b31a3c6 Replace lena.pnm The new reference.pnm is a freely licensed replacement. The photo has been taken by Reinhard Tartler on August 28 2014, and is licensed under the expat license as stated at http://www.jclark.com/xml/copying.txt (cherry picked from commit 8895bf7b78650c0c21c88cec0484e138ec511a4b) Signed-off-by: Reinhard Tartler <siretart@tauware.de> 01 December 2014, 13:02:45 UTC
ce99ef4 Treat all '*.pnm' files as non-text file This convinces the pre-receive hook to not consider all *.pnm files as text files to reduce the patch sizes and avoids triggering whitespace checks, Contains a correction by Janne Grunau <janne-libav@jannau.net> (cherry picked from commit 0f257e29c5520b215e573e7e3abde8e5a4743309) Signed-off-by: Reinhard Tartler <siretart@tauware.de> 01 December 2014, 13:02:37 UTC
ca78ee7 opusdec: make sure all substreams have the same number of coded samples Fixes invalid writes with invalid multichannel streams. CC:libav-stable@libav.org (cherry picked from commit 1973079417e8701b52ba810a72cb6c7c6f7f9a56) Signed-off-by: Anton Khirnov <anton@khirnov.net> 27 November 2014, 13:11:51 UTC
517ce1d lavu: fix memory leaks by using a mutex instead of atomics The buffer pool has to atomically add and remove entries from the linked list of available buffers. This was done by removing the entire list with a CAS operation, working on it, and then setting it back again (using a retry-loop in case another thread was doing the same thing). This could effectively cause memory leaks: while a thread was working on the buffer list, other threads would allocate new buffers, increasing the pool's total size. There was no real leak, but since these extra buffers were not needed, but not free'd either (except when the buffer pool was destroyed), this had the same effects as a real leak. For some reason, growth was exponential, and could easily kill the process due to OOM in real-world uses. Fix this by using a mutex to protect the list operations. The fancy way atomics remove the whole list to work on it is not needed anymore, which also avoids the situation which was causing the leak. Signed-off-by: Anton Khirnov <anton@khirnov.net> (cherry picked from commit fbd6c97f9ca858140df16dd07200ea0d4bdc1a83) Signed-off-by: Anton Khirnov <anton@khirnov.net> 27 November 2014, 12:38:29 UTC
46a17d8 lavu: add wrappers for the pthreads mutex API Also add no-op fallbacks when threading is disabled. This helps keeping the code clean if Libav is compiled for targets without threading. Since we assume that no threads of any kind are used in such configurations, doing nothing is ok by definition. Based on a patch by wm4 <nfxjfg@googlemail.com>. (cherry picked from commit 2443e522f0059176ff8717c9c753eb6fe7e7bbf1) Signed-off-by: Anton Khirnov <anton@khirnov.net> 27 November 2014, 12:38:27 UTC
12700b0 mp3enc: fix a triggerable assert We have to check against the number of bytes actually needed, not the theoretical maximum size. 14 November 2014, 19:22:40 UTC
ca8c62d resample: Avoid off-by-1 errors in PTS calcs. The rounding used in the PTS calculations in filter_frame() does not actually match the number of samples output by the resampler. This leads to off-by-1 errors in the timestamps indicating gaps and underruns, even when the input timestamps are all contiguous. Bug-Id: 753 Signed-off-by: Anton Khirnov <anton@khirnov.net> (cherry picked from commit 6cbbf0592f4f3940aac7f687850d1b726a2ea836) Signed-off-by: Anton Khirnov <anton@khirnov.net> 18 October 2014, 03:11:23 UTC
e443165 imc: fix order of operations in coefficients read Reported-by: Ruoyu <liangry@ucweb.com> 15 October 2014, 13:51:19 UTC
0b41eea hevc_mvs: make sure to always initialize the temporal MV fully The spec requires this. Fixes uninitialized reads on some samples. Remove now unnecessary initialization of the whole merge candidate list. 08 October 2014, 11:31:08 UTC
de31f85 hevc_mvs: initialize the temporal MV in case of missing ref The caller expects the MV to always be initialized. 08 October 2014, 11:30:54 UTC
ff24824 h264: reset ret to avoid propagating minor failures Unbreak 772d150a6e82542c06b0c251e73dd299d98d1027. CC: libav-stable@libav.org Bug-Id: 750 / 905753 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> 29 September 2014, 11:35:32 UTC
570cefb hevc: Initialize mergecand_list to 0 Unbreak cf6090dc6252f2b276aa4133e3d73a89f4c6046c. CC: libav-stable@libav.org Sample-Id: hevc-conformance-LTRPSPS_A_Qualcomm_1 29 September 2014, 11:35:16 UTC
ce0972e mpeg12: Always invoke the get_format() callback Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 26 September 2014, 20:05:37 UTC
09c8488 h264: Always invoke the get_format() callback Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 26 September 2014, 20:05:34 UTC
9eb442c Update default FATE URL for release/11 17 September 2014, 14:08:57 UTC
b45ab61 apetag: Fix APE tag size check The size variable is (correctly) unsigned, but is passed to several functions which take signed parameters, such as avio_read, sometimes after having numbers added to it. So ensure that size remains within the bounds that these functions can handle. (cherry picked from commit c5560e72d0bb69f8a1ac9536570398f84388f396) Signed-off-by: Diego Biurrun <diego@biurrun.de> 17 September 2014, 14:07:22 UTC
f851477 Prepare for 11 release 13 September 2014, 18:14:46 UTC
4f2d4b9 doc: Fix syntax and logical errors in avconv stream combination example Bug-Id: 661 CC: libav-stable@libav.org (cherry picked from commit 775a0b04f0cf8102fe322b2ee03fe1a0633dea04) Signed-off-by: Diego Biurrun <diego@biurrun.de> 10 September 2014, 19:01:16 UTC
7d8ebb8 Fix RELEASE identification This was accidentally left over in b5d4f49e3cb1a13642542f08c8c54791c3d54dfb 09 September 2014, 00:58:45 UTC
07b0ccf Mark 11 release in the changelog Also fix some typos in the entries for the 11 release. (cherry picked from commit d9792b773516a560ecb99694b8ee745a50027fac) Signed-off-by: Diego Biurrun <diego@biurrun.de> 04 September 2014, 22:20:11 UTC
9d3e69a Add release notes for 11. (cherry picked from commit 12f0388f9cb32016ac0dacaeca631b088b29bb96) Signed-off-by: Diego Biurrun <diego@biurrun.de> 04 September 2014, 15:25:45 UTC
480633c avcodec: fix missing doxygen comment marker 31 August 2014, 23:48:58 UTC
b5d4f49 Prepare for 11_beta2 Release 30 August 2014, 15:51:28 UTC
4cde8ba license: Mention that vf_interlace is GPL, not LGPL (cherry picked from commit 9e8bbe7d4d1dcd5fec491dbfbb98ed2038a7bed5) Signed-off-by: Diego Biurrun <diego@biurrun.de> 28 August 2014, 17:50:34 UTC
5b740d1 matroskaenc: convert avstream stereo3d side data during encoding Write the StereoMode Embl to bitstream. 28 August 2014, 17:07:17 UTC
152e09f matroskadec: parse stereo mode on decoding Convert the Matroska stereo format to the Stereo3D format, and add a Stereo3D side data to the stream. Bump the doctype version supported. Bug-Id: 728 / https://bugs.debian.org/757185 28 August 2014, 17:07:17 UTC
110841c avcodec: add stream-level stereo3d side data 28 August 2014, 17:05:31 UTC
5694831 matroska: list supported extensions 28 August 2014, 17:05:31 UTC
1f52f82 doc/APIchanges: fill in missing hashes and dates 28 August 2014, 17:02:15 UTC
e62f08c pulse: Add a wallclock option to be compatible with other other captures alsa and x11grab use av_gettime() to report timestamps. Have it on by default. Bug-Id: 647 (cherry picked from commit 424b929b5cb9ca4094099f25179829260d4b0fa3) (cherry picked from commit 404731bd20e1df5880e6fe381e975ba48afc75b2) Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 28 August 2014, 09:13:19 UTC
ee09905 vc1: Initialize start_code_found to 0 27 August 2014, 10:38:09 UTC
e2a89f7 avconv: fix parsing the AVOptions for -target CC: libav-stable@libav.org (cherry picked from commit f5245a9c6206878b892adf3ccbccc9311c202af5) Signed-off-by: Anton Khirnov <anton@khirnov.net> 27 August 2014, 06:25:26 UTC
7c46855 avconv: fix the muxrate values for -target The mpegenc private option values are in 50-byte units. CC: libav-stable@libav.org (cherry picked from commit 1688eef25385089026aba55da1885f70a57815ab) Signed-off-by: Anton Khirnov <anton@khirnov.net> 27 August 2014, 06:25:25 UTC
c2d6cc2 mpegenc: limit the maximum muxrate It is written to the file as a 22-bit value. CC: libav-stable@libav.org (cherry picked from commit 75bbaf2493a71ee66eaabe3c21fadd84d07888de) Signed-off-by: Anton Khirnov <anton@khirnov.net> 27 August 2014, 06:25:24 UTC
8c91414 vc1: Fix the skip condition As written in the comment above, skip must be added only if a start code is found. 26 August 2014, 12:47:45 UTC
0263750 vfwcap: Add fallback define for HWND_MESSAGE Some obsolete versions of the MinGW32 runtime (<4.0.0) lack the definition. (cherry picked from commit ab56fabe6294524e99815451ad01e4ff50c6d734) Signed-off-by: Diego Biurrun <diego@biurrun.de> 26 August 2014, 00:17:29 UTC
63795fe setpts: Add missing inttypes.h #include for PRId64 Also convert a debug av_log() to av_dlog(). (cherry picked from commit 593aaee953f8b07c141ff115e67bae85ef0350c7) Signed-off-by: Diego Biurrun <diego@biurrun.de> 24 August 2014, 20:00:53 UTC
d2bad21 mpeg12enc: Add missing #include for PICT_FRAME (cherry picked from commit 8fc6a70c2167b645b7a37d0cbc0e276e7b787cc9) Signed-off-by: Diego Biurrun <diego@biurrun.de> 24 August 2014, 20:00:53 UTC
d04fb11 error_resilience: Drop asserts from guess_mv() The asserts check struct members that are not referenced in guess_mv() and one of them fails to compile. (cherry picked from commit 7cb66ebc0be48489785f7166c9d15eac594b0763) Signed-off-by: Diego Biurrun <diego@biurrun.de> 24 August 2014, 20:00:53 UTC
e8f2823 vsrc_movie: Adjust a silly typo from b977b287f61fea48ecd6251d54a26334213b7ec6 (cherry picked from commit 11cd727fbd603197cb1e49654fce3352d56f8fd8) Signed-off-by: Diego Biurrun <diego@biurrun.de> 24 August 2014, 20:00:53 UTC
7dfccac electronicarts: do not fail on zero-sized chunks At least one FATE sample contains such chunks and happens to work simply by accident (due to find_stream_info() swallowing the error). CC: libav-stable@libav.org (cherry picked from commit 4d6c5152849e23a4cc0f6a6ac2880c01ebcd301b) Signed-off-by: Anton Khirnov <anton@khirnov.net> 22 August 2014, 11:25:40 UTC
0436142 Revert "lavf: eliminate ff_get_audio_frame_size()" This reverts commit 30e50c50274f88f0f5ae829f401cd3c7f5266719. The original commit broke the ability to stream AAC over HTTP/Icecast. It looks like avformat_find_stream_info() gets stuck in an infinite loop, never hitting AVFormatContext.max_analyze_duration since duration is never set for any of the packets. Example stream: http://listen.classicrocklounge.com:8000/aac64 Signed-off-by: Anton Khirnov <anton@khirnov.net> 22 August 2014, 11:22:38 UTC
67a7695 avfilter: Remove unused variable from ff_get_video_buffer() 19 August 2014, 16:50:18 UTC
b977b28 vsrc_movie: Avoid a variable indirection in movie_get_frame() This avoids an unused variable warning with MSVC since the variable is only used in a debug mode printf statement. 19 August 2014, 13:22:08 UTC
6af2930 pcm: Drop av_unused attribute from variable that is always used 19 August 2014, 13:22:08 UTC
14d2006 pcm: Drop unused variable from DECODE_PLANAR macro 19 August 2014, 13:22:07 UTC
d456baa vc1: Add missing parentheses to conditions in vc1_decode_b_mb_intfr() 19 August 2014, 13:22:07 UTC
8bc52db vfwcap: Drop fallback VfW defines The defines were added long ago when MinGW still lacked them. 19 August 2014, 13:22:07 UTC
86dfcfd mov: Drop unused parameter from ff_mov_read_esds() This is cleaner and avoids an uninitialized variable warning with MSVC. 19 August 2014, 13:22:07 UTC
41e1354 proresenc: Properly account for alpha plane The packet buffer allocation considers the alpha channel as DCT-coded, while it is actually run-coded and thus requires a larger buffer. CC: libav-stable@libav.org Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 18 August 2014, 16:58:01 UTC
45ce880 proresenc: Realloc if buffer is too small The buffer allocation may be incorrect (e.g. with an alpha plane), and currently causes the buffer to be set to NULL by init_put_bits, causing a crash later on. So, detect that situation, and if detected, reallocate the buffer and ask for a sample that shows the problem. CC: libav-stable@libav.org Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 18 August 2014, 16:57:06 UTC
58b68e4 proresenc: Report buffer overflow If the allocated size, despite best efforts, is too small, exit with the appropriate error. CC: libav-stable@libav.org Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 18 August 2014, 16:51:44 UTC
b16699f proresenc: Remove unneeded parameters from encode_alpha_plane() Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 18 August 2014, 16:48:14 UTC
12640e4 tiff: Return proper error for missing LZMA compression The LZMA support is a semi-official extension supported by libtiff 4.0.0 and later. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu> Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 18 August 2014, 12:23:24 UTC
dd35d45 doc: Change wrong term to avoid confusion A function declaration is the prototype. Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 18 August 2014, 11:29:25 UTC
4260490 Prepare for 11_beta1 Release 18 August 2014, 02:18:19 UTC
369380e mxf: Support AAC Update mxf_set_audio_pts to use the container-provided information. The UL is marked as "to be changed in the future", but the current samples in the wild do use it. 17 August 2014, 14:11:16 UTC
747cd95 mxf: Add the UL for the MPEG2VideoDescriptor 17 August 2014, 14:11:02 UTC
304089a mxf: Add UID print helpers And use it to print non-parsed ULs. 17 August 2014, 14:11:02 UTC
11db644 lavr: Update the planar check in ff_audio_convert Leftover from fbc0b8659967ea54a8472b5f795270d38bb085dd. Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 17 August 2014, 14:11:02 UTC
96ce6d6 doc: Add more information in the README And convert it to Markdown. 15 August 2014, 22:49:22 UTC
4b1f5e5 cosmetics: Write NULL pointer inequality checks more compactly Signed-off-by: Diego Biurrun <diego@biurrun.de> 15 August 2014, 12:34:13 UTC
f929ab0 cosmetics: Write NULL pointer equality checks more compactly Signed-off-by: Diego Biurrun <diego@biurrun.de> 15 August 2014, 10:18:18 UTC
efd26be build: Add explanatory comments to (optimization) blocks in the Makefiles 15 August 2014, 09:55:21 UTC
835f798 mpegvideo: cosmetics: Lowercase ugly uppercase MPV_ function name prefixes 15 August 2014, 08:26:33 UTC
a6a27fe vfwcap: Replace deprecated av_destruct_packet() by av_free_packet() 15 August 2014, 07:53:02 UTC
7c37175 atomic_win32: Drop unnecessary atomic.h #include The file does not require atomic.h. Also kills function redefinition warnings. 15 August 2014, 07:52:57 UTC
6baeadd w32pthreads: Mark functions in compatibility wrapper as av_unused This avoids annoying warnings about unused functions. The compatibility wrapper is designed to provide a complete (stub) API, so some functions being unused by some files is natural and no reason for a warning. 15 August 2014, 07:37:38 UTC
7ccb847 http: Reduce scope of a variable in parse_content_encoding() Also fixes an unused variable warning with zlib disabled. 15 August 2014, 07:37:38 UTC
552bc42 h261dec: Fix order of initialization ff_MPV_common_init requires the frame dimensions which get parsed in h261_decode_picture_header. 14 August 2014, 14:58:50 UTC
b869eea h263dec: Fix order of initialization ff_MPV_common_init requires the frame dimensions which get parsed in *_decode_picture_header. 14 August 2014, 14:58:50 UTC
998c9f1 idct: remove call to ff_idctdsp_init from ff_MPV_common_init One step in untangling the mpegvideo code and fixing some problems in the order that initialization is being done in h263dec and h261dec. 14 August 2014, 14:58:49 UTC
93f2994 mpeg4video: Fix doxygen comment syntax to document correct struct member Also fix some comment typos. Signed-off-by: Diego Biurrun <diego@biurrun.de> 14 August 2014, 09:59:59 UTC
0528226 a64: Return correct error code on invalid data stream Signed-off-by: Diego Biurrun <diego@biurrun.de> 14 August 2014, 08:22:47 UTC
e070d0a frame: Remove some FF_API_AVFRAME_COLORSPACE leftovers 14 August 2014, 07:44:47 UTC
ab059f0 vaapi: set the scaling list correctly. Fixes VAAPI decoding artefacts. CC:libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net> 14 August 2014, 05:50:08 UTC
e8049af mpegts: Do not try to write a PMT larger than SECTION_SIZE Prevent out of array writes. Similar to what Michael Niedermayer did to address the same issue. Bug-Id: CVE-2014-2263 CC: libav-stable@libav.org Signed-off-by: Diego Biurrun <diego@biurrun.de> 13 August 2014, 19:43:26 UTC
3532405 cpu-test: Add unistd.h #include for getopt() 13 August 2014, 19:37:25 UTC
30e50c5 lavf: eliminate ff_get_audio_frame_size() It is basically a wrapper around av_get_audio_frame_duration(), with a fallback to AVCodecContext.frame_size. However, that field is set only when the stream codec context is actually used for encoding or decoding, which is discouraged. For muxing, it is generally the responsibility of the caller to set the packet duration. For demuxing, if the duration is not stored at the container level, it should be set by the parser. Therefore, removing the frame_size fallback should not break any important case. 13 August 2014, 17:41:11 UTC
481a366 cmdutils: allow matching by metadata in stream specifiers 13 August 2014, 17:24:18 UTC
8ddc326 mem: add av_strndup() for duplicating substrings 13 August 2014, 17:24:18 UTC
aa51b04 avconv: rename output_packet() to process_input_packet() It more accurately describes what this function does 13 August 2014, 17:24:18 UTC
159a06d stereo3d: initialize AVStereo3D to zero Signed-off-by: Anton Khirnov <anton@khirnov.net> 13 August 2014, 17:24:18 UTC
4e629ef http: Fix authentication, broken since 6a463e7fb The cur_*auth_type variables were set before the http_connect call prior to 6a463e7fb - their sole purpose is to record the authentication type used to do the latest request, since parsing the http response sets the new type in the auth state. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st> 13 August 2014, 17:22:28 UTC
db68ef8 ogg: update event_flags with STREAM_/METADATA_UPDATED whenever metadata changes. Originally, AVFormatContext and a metadata dict were provided to ff_vorbis_comment(), but this presented issues if an AVStream was being updated or the metadata on AVFormatContext wasn't actually being updated. To remedy this, ff_vorbis_stream_comment() explicitly updates a stream's metadata and sets any necessary flags. ff_vorbis_comment() does not modify any flags, and any calls to it that update AVFormatContext's metadata (just a single call) must also update AVFormatContext.event_flags after detecting any metadata changes to the provided dictionary, as signaled by a positive return value. Signed-off-by: Anton Khirnov <anton@khirnov.net> 13 August 2014, 16:25:19 UTC
cc3e88a mov: update AVFormatContext.event_flags with METADATA_UPDATED whenever metadata changes. Signed-off-by: Anton Khirnov <anton@khirnov.net> 13 August 2014, 16:24:09 UTC
fa3a5dd nutdec: update AVFormatContext.event_flags with STREAM_/METADATA_UPDATED whenever metadata changes. Signed-off-by: Anton Khirnov <anton@khirnov.net> 13 August 2014, 16:23:36 UTC
0f78932 flvdec: update AVFormatContext.event_flags with METADATA_UPDATED whenever metadata changes. Signed-off-by: Anton Khirnov <anton@khirnov.net> 13 August 2014, 16:23:28 UTC
93c04e0 Expose metadata found in onCuePoint events in .flv files. Currently, only onMetaData is used, but some providers (wrongly) put metadata into onCuePoint events, and it's still nice to be able to use that data. onCuePoint events also present metadata slightly differently than onMetaData events: all metadata is found inside an object called "parameters". In order to extract this metadata, it's easiest to recurse through the object tree and pull out anything found in child objects and put it in the top-level metadata. Reference: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/2/help.html?content=00001404.html Signed-off-by: Anton Khirnov <anton@khirnov.net> 13 August 2014, 16:11:43 UTC
019d3fc Set protocol-level metadata in AVFormatContext any time a packet is read. If any option named "metadata" is set inside the context, it is pulled up to the context and then the option is cleared. Signed-off-by: Anton Khirnov <anton@khirnov.net> 13 August 2014, 16:10:49 UTC
7e38903 http: enable icy metadata by default. It won't hurt servers that don't care about the header, and those that do will include it by default. Signed-off-by: Anton Khirnov <anton@khirnov.net> 13 August 2014, 16:10:15 UTC
7601f94 http: export icecast metadata as an option with name "metadata". Signed-off-by: Anton Khirnov <anton@khirnov.net> 13 August 2014, 16:09:05 UTC
a8c104a AVOption: add support for dictionary types. In order to support metadata being set as an option, it's necessary to be able to set dictionaries as values. Signed-off-by: Anton Khirnov <anton@khirnov.net> 13 August 2014, 16:07:40 UTC
afbd4b7 lavf: add AVFormatContext/AVStream fields for signaling to the user when events happen. The only flags, for now, indicate if metadata was updated and are set after each call to av_read_frame(). This comes with the caveat that, on stream start, it might not be set properly as packets might be buffered in AVFormatContext.packet_buffer before being given to the user in av_read_frame(). Signed-off-by: Anton Khirnov <anton@khirnov.net> 13 August 2014, 16:04:48 UTC
72199e1 configure: Check for nanosleep in headers as well, not only in libs On mingw64 with c++11 support, the link libraries do contain a nanosleep function, while it isn't exposed via the headers. Using check_func_headers instead of a plain check_func fixes this misdetection. Signed-off-by: Martin Storsjö <martin@martin.st> 13 August 2014, 11:39:01 UTC
428b057 w32threads: Use newer thread synchronization functions when targeting Vista When explicitly targeting Vista or newer (which only happens if the caller explicitly sets _WIN32_WINNT to a high enough value via the extra cflags option - otherwise configure script sets -D_WIN32_WINNT=0x0502), we already unconditionally link to the ConditionVariable functions, since 4622f11f9. Similarly use the newer -Ex versions of CreateEvent, CreateSemaphore, InitializeCriticalSection and WaitForSingleObject, that all appeared in Vista. When building Windows Store applications, the older versions of these functions aren't available, only the -Ex functions. When doing such a build, the user can set -D_WIN32_WINNT=0x0600 to forcibly use the newer functions instead. Signed-off-by: Martin Storsjö <martin@martin.st> 13 August 2014, 11:38:18 UTC
8bf3bf6 http: Stop reading after receiving the whole file for non-chunked transfers Previously this logic was only used if the server didn't respond with Connection: close, but use it even for that case, if the server response is non-chunked. Originally the http code has relied on Connection: close to close the socket when the file/stream is received - the http protocol code just kept reading from the socket until the socket was closed. In f240ed18 we added a check for the file size, because some http servers didn't respond with Connection: close (and wouldn't close the socket) even though we requested it, which meant that the http protocol blocked for a long time at the end of files, waiting for a socket level timeout. When reading over tls, trying to read at the end of the connection, when the peer has closed the connection, can produce spurious (but harmless) warnings. Therefore always voluntarily stop reading when the specified file size has been received, if not using a chunked transfer encoding. (For chunked transfers, we already return 0 as soon as we get the chunk header indicating end of stream.) Signed-off-by: Martin Storsjö <martin@martin.st> 13 August 2014, 11:34:25 UTC
da7d839 ffv1dec: check that global parameters do not change in version 0/1 Such changes are neither allowed nor supported Found-by: ami_stuff Bug-Id: CVE-2013-7020 CC: libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net> 12 August 2014, 10:21:21 UTC
back to top