Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-08ffserver: local OOB write with custom program nameTobias Stoeckmann
When the command line for children is created, it is assumed that my_program_name always ends with "ffserver", which doesn't have to be true if ffserver is called through a symbolic link. In such a case, it could be that not enough space for "ffmpeg" is available at the end, leading to a buffer overflow. One example would be: $ ln -s /usr/bin/ffserver ~/f; ~/f As this is only a local buffer overflow, i.e. is based on a weird program call, this has NO security impact. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-12-05ffserver: Check chunk sizeMichael Niedermayer
Fixes out of array access Fixes: poc_ffserver.py Found-by: Paul Cher <paulcher@icloud.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-12-03ffserver: remove one avcodec_context_copy()Michael Niedermayer
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-12-01ffserver: set format bitexact flag, eliminate warnings about it not being setMichael Niedermayer
Tested-by: Reto Kromer <lists@reto.ch> Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-12-01ffserver: fix broken HTML on generated status pageReynaldo H. Verdejo Pinochet
Dropped incompatible/obsoleted HTML tag attributes Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
2016-12-01ffserver: use codec time_base for streamAndreas Cadhalpun
This fixes producing swf and rm files as done by ffservertest. Reviewed-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-11-30ffserver: Add client requested urls to the status pageMichael Niedermayer
Fixes Ticket3791 Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-29ffsrever: Make the status page bitexact if any stream is bitexactMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-29ffserver: Remove last use of AVStream sizeMichael Niedermayer
Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-29ffserver: Remove some deprecated API use related to codec/codecparMichael Niedermayer
Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-29ffserver: Remove use of AVStream as a intermediate to store parametersMichael Niedermayer
Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-29ffserver: drop FeedData, its unusedMichael Niedermayer
Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-27ffserver: Remove extract_mpeg4_header()Michael Niedermayer
This should not be needed, our AVParsers should do this I do not have a testcase though, please help testing this and please add fate tests if you can. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-27Revert "ffserver: use AVStream.codecpar in open_input_stream()"Michael Niedermayer
Fixes null pointer dereference Testcase is simply a ffmpeg instance sending a stream to ffserver while another ffmpeg reads from it This reverts commit 6f0a1710d77dde0d803861506a2157a23f08c14c.
2016-11-08ffserver: use AVStream.codecpar in open_input_stream()Reynaldo H. Verdejo Pinochet
AVStream.codec is deprecated Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-08ffserver: user AVStream.codecpar in compute_status()Reynaldo H. Verdejo Pinochet
AVStream.codec is deprecated Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-08ffserver: use AVStream.codecpar in find_stream_in_feed()Reynaldo H. Verdejo Pinochet
AVStream.codec is deprecated Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-08ffserver: get time_base from AVStream in print_stream_params()Reynaldo H. Verdejo Pinochet
AVStream.codec is deprecated Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-08ffserver: use .codecpar instead of .codec in print_stream_params()Reynaldo H. Verdejo Pinochet
AVStream.codec is deprecated Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-08ffserver: check for codec match using AVStream.codecparReynaldo H. Verdejo Pinochet
Compare using AVCodecParameters instead of the deprecated AVStream.codec field Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-07ffserver: Fix one AVFormatContext misuseMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-07ffserver: steal SPACE_CHARS, remove one reason for internal.h that wayMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-07ffserver: eliminate hardcoded literal and duplicated array sizeMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-07ffserver: use av_freep() for a case that is not clearly at the end of a functionMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-07ffserver: Throw ffm.h out its not used except for a constant that is part of ↵Michael Niedermayer
the format Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-11-07ffserver: drop a bunch of apparently unneeded internal headersMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-08cmdutils: remove the current working directory from the DLL search path on win32Hendrik Leppkes
Reviewed-by: Matt Oliver <protogonoi@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-05-27ffserver: fixed deallocation bug in build_feed_streamsGregor Riepl
Signed-off-by: Gregor Riepl <onitake@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-04-10Merge commit '9200514ad8717c63f82101dc394f4378854325bf'Derek Buitenhuis
* commit '9200514ad8717c63f82101dc394f4378854325bf': lavf: replace AVStream.codec with AVStream.codecpar This has been a HUGE effort from: - Derek Buitenhuis <derek.buitenhuis@gmail.com> - Hendrik Leppkes <h.leppkes@gmail.com> - wm4 <nfxjfg@googlemail.com> - Clément Bœsch <clement@stupeflix.com> - James Almer <jamrial@gmail.com> - Michael Niedermayer <michael@niedermayer.cc> - Rostislav Pehlivanov <atomnuker@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-03-08ffserver: Fixed ffserver to support large ffm filesLior Mualem
ffm_read_write_index returns a 64bit value, Github: Closes #185
2016-02-21ffserver&ffm: Fixed issues preventing ffserver write_index and files_size ↵Oliver Collyer
from being set correctly which was breaking ffserver streaming. I discovered that ffserver streaming was broken (it seems like it has been since 20th November) and I opened a ticket for this (https://trac.ffmpeg.org/ticket/5250 <https://trac.ffmpeg.org/ticket/5250>). I spent yesterday learning git bisect (with the kind help of cehoyos) to painstakingly track down the cause. This was made more difficult due to the presence of a segfault in ffserver during the period where the bug was introduced so I first had to identify when and how that was fixed and then retrospectively apply that fix again for each step of the second git bisect to find the actual bug. Anyway, the fruits of my labour are the innocent looking patch below to correct a couple of typos and define a valid range for two variables. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-29ffserver: Cast time_t value when using it in a format string.Carl Eugen Hoyos
Fixes ticket #5103.
2015-12-27ffserver: add a doctype heading to our HTML pagesReynaldo H. Verdejo Pinochet
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
2015-12-27ffserver: HTML encode msgs instead of blindly stripping chars outReynaldo H. Verdejo Pinochet
Fixes weirdness like our "??filename? not found" 404. None of the chars being used from the previously blacklisted list needs to be scaped on an UTF-8 document context Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
2015-12-27ffserver: make our 404 explicitly HTML5/UTF-8Reynaldo H. Verdejo Pinochet
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
2015-12-19ffserver: refactor build_feed_streams()Reynaldo H. Verdejo Pinochet
* Avoid excesive nesting that made it really hard to follow * Drop unneeded vars * Factor out codec compatibility check routine * Ensure inputs are closed and contexts are freed as needed before returning Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
2015-12-19ffserver: refactor build_file_streams()Reynaldo H. Verdejo Pinochet
Avoid unneeded nesting, drop redundant var Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
2015-12-19ffserver: unify exit path from build_feed_streams()Reynaldo H. Verdejo Pinochet
Exit from main on build_feed_streams() failures & use standard EXIT_ codes on error out/normal exit. Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
2015-12-15ffserver: explicitly use time_t for uptime calcReynaldo H. Verdejo Pinochet
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
2015-12-15ffserver: free pathname before bailing outReynaldo H. Verdejo Pinochet
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
2015-12-15ffserver: use EXIT_FAILURE on failed child fork()Reynaldo H. Verdejo Pinochet
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
2015-12-15ffserver: be explicit on failed fork() msgReynaldo H. Verdejo Pinochet
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
2015-12-15ffserver: allocate AVStream's internal tooReynaldo H. Verdejo Pinochet
Avoids segfault at init_muxer() (mux.c) due to a null pointer dereference on the recently introduced AVStream->internal Fixes: #5059 (https://trac.ffmpeg.org/ticket/5059) Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
2015-12-01ffserver: Clear avio context after closing it in rtp_new_av_stream()Michael Niedermayer
Suggested-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-01ffserver: Clear avio context after closing itMichael Niedermayer
Fixes: ==13287== Invalid read of size 4 ==13287== at 0x45161A: flush_buffer (aviobuf.c:143) ==13287== by 0x451971: avio_flush (aviobuf.c:200) ==13287== by 0x512CCF: av_write_trailer (mux.c:1016) ==13287== by 0x41A5E0: close_connection (ffserver.c:853) ==13287== by 0x421EDC: rtsp_cmd_interrupt (ffserver.c:3245) ==13287== by 0x420B9C: rtsp_parse_request (ffserver.c:2854) ==13287== by 0x41A9C2: handle_connection (ffserver.c:930) ==13287== by 0x41A04B: http_server (ffserver.c:700) ==13287== by 0x423A60: main (ffserver.c:3897) ==13287== Address 0xb6cd258 is 88 bytes inside a block of size 192 free'd ==13287== at 0x4C2B5D9: free (vg_replace_malloc.c:446) ==13287== by 0x1004DAC: av_free (mem.c:239) ==13287== by 0x454835: avio_close_dyn_buf (aviobuf.c:1170) ==13287== by 0x41F385: http_prepare_data (ffserver.c:2368) ==13287== by 0x41F59B: http_send_data (ffserver.c:2416) ==13287== by 0x41ABE2: handle_connection (ffserver.c:986) ==13287== by 0x41A04B: http_server (ffserver.c:700) ==13287== by 0x423A60: main (ffserver.c:3897) Reviewed-by: "Reynaldo H. Verdejo Pinochet" <reynaldo@osg.samsung.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-11-29ffserver: add NULL context to ff_rtsp_parse_line().Nicolas George
Needed after f62fe53/2c17fb6.
2015-11-20ffserver: Use AVOption API to access ffm demuxer instead of direct access ↵Michael Niedermayer
depending on ABI server_attached is newly added so the demuxer knows if there is an attached server that can update the write index. This is needed to fix a infinite loop Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-11-11ffserver: Replace one malloc(AVStream) by avformat_new_stream()Michael Niedermayer
This fixes a null pointer dereference from the recently introduced AVStream->internal Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-11-11ffserver: Do not add or rescale AV_NOPTS_VALUE from the demuxerMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-11-10ffserver: fix incorrect strlcpy usageGanesh Ajjanagadde
Somewhat ironic that this "safe" interface is actually being used unsafely here. This fixes the usage preventing potential null pointer dereference, where the old code was doubly broken: ctime can return NULL, and ctime can return an arbitrarily long buffer. Reviewed-by: Mark Harris <mark.hsj@gmail.com> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>