summaryrefslogtreecommitdiff
path: root/ffplay.c
Commit message (Collapse)AuthorAge
* cmdutils: remove OPT_FUNC2Stefano Sabatini2011-05-28
| | | | | | | | | Make ff* tools only accept opt_* functions taking two arguments. The distinction between functions with one and two arguments is quite pointless. Simplify parse_options() code. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* ffplay: Remove disabled code.Diego Biurrun2011-05-26
|
* Add support for request_sample_format in ffmpeg and ffplay.Justin Ruggles2011-05-18
|
* ffplay: remove audio_write_get_buf_size() forward declarationStefano Sabatini2011-05-16
| | | | | | Move up the definition of audio_write_get_buf_size(), so that it is defined before it is used. Simplify. (cherry picked from commit 8776f3d22e401e30d17856e341f6cabbbefa92f7)
* configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.Diego Biurrun2011-05-12
| | | | | | | | | | | | | | | | Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems since it causes certain system functions to be hidden on some (BSD) systems. The solution is to only add the flag on systems that really require it, i.e. glibc-based ones. This change makes BSD systems compile out-of-the-box without the need for adding specific flags manually. It also allows dropping a number of flags set manually on a file-per-file basis, but were only present to work around breakage introduced by the presence of _POSIX_C_SOURCE. Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems. We use XSI extensions in several places already, so it is preferable to define it globally instead of littering source files with individual #defines only needed for glibc.
* ffplay: add a dummy option -i so that it is easy to switch between ffmpeg -i ↵Benjamin Larsson2011-05-11
| | | | | | "file" and ffplay -i "file". Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Add the notion of pixel size in h264 related functions.Oskar Arvidsson2011-05-10
| | | | | | | | | | In high bit depth the pixels will not be stored in uint8_t like in the normal case, but in uint16_t. The pixel size is thus 1 in normal bit depth and 2 in high bit depth. Preparatory patch for high bit depth h264 decoding support. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Replace deprecated av_get_pict_type_char() with av_get_picture_type_char().Stefano Sabatini2011-05-02
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Replace some commented-out debug printf() / av_log() messages with av_dlog().Diego Biurrun2011-04-29
|
* Lowercase all ff* program names.Diego Biurrun2011-04-23
|
* lavc: remove the FF_API_SET_STRING_OLD cruft.Anton Khirnov2011-04-19
|
* avio: avio_ prefix for url_set_interrupt_cb.Anton Khirnov2011-04-07
|
* ffplay: Don't assume ic->pb is non-nullMartin Storsjö2011-03-21
| | | | | | | | | This fixes crashes on exit when plaing some RealRTSP streams (among other), e.g. rtsp://dl.lib.brown.edu:554/areserves/1093545294660883.mp3. These crashes have been present since 3e68b3ba7b015cf21. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avio: deprecate url_ferrorAnton Khirnov2011-03-15
| | | | | | AVIOContext.error should be used directly instead. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: deprecate url_feofAnton Khirnov2011-03-07
| | | | | | AVIOContext.eof_reached should be used directly instead. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefix for url_fsizeAnton Khirnov2011-03-07
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: add avio_tell macro as a replacement for url_ftellAnton Khirnov2011-03-04
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf: add av_ prefix to dump_format()Anton Khirnov2011-02-16
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-15
| | | | | | | | | | | | It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Remove disabled legacy code in ffplay.Stefano Sabatini2011-02-14
| | | | | | | | | | | | The code was setting aspect ratio from the DTG active format, and was present and disabled since the creation of ffplay. See thread: Subject: [FFmpeg-devel] [PATCH] Cosmetics: adopt compact notation in disabled code. Date: Sat, 12 Feb 2011 18:46:19 +0100 Signed-off-by: Mans Rullgard <mans@mansr.com>
* Deprecate avcodec_thread_init()Alexander Strange2011-02-09
| | | | | | | | | | | | | | As a side effect of the last commit, avcodec_open() now calls it automatically, so there is no longer any need for clients to call it. Instead they should set AVCodecContext.thread_count. avcodec_thread_free() is deprecated, and will be removed from avcodec.h at the next MAJOR libavcodec bump. Rename the functions to ff_thread_init/free, since they are now internal. Wrappers are provided to maintain API compatibility. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Frame-based multithreading framework using pthreadsAlexander Strange2011-02-09
| | | | | | See doc/multithreading.txt for details on use in codecs. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Adopt pkt_dts/pkt_pts in lavc clientsAlexander Strange2011-02-05
| | | | | | No behavior change; this makes DTS reliable with the next patch. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Make avfilter_graph_free() free the graph.Stefano Sabatini2011-02-04
| | | | | | | | | | Make avfilter_graph_free() free not only the internal structures, but also the allocated graph, and set the graph pointer to NULL for increased safety. Simplify usage. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ffplay: factorize code from video_thread() into configure_video_filters()Stefano Sabatini2011-02-02
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* In ffplay:get_video_frame(), use frame->pkt_pts rather than reordered_opaque.Stefano Sabatini2011-01-30
| | | | | | AVCodecContext.reordered_opaque is deprecated for this specific use. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ffplay: in video_thread(), use av_dlog() for timestamp logging.Stefano Sabatini2011-01-30
| | | | | | | Disable logging of rescaled timestamps if DEBUG is not enabled. Avoid debug log spamming with -loglevel debug. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove outdated and confusing comment.Stefano Sabatini2011-01-22
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Merge two if (got_picture) {} blocks in ffplay.c:get_video_frame().Stefano Sabatini2011-01-17
|
* Remove outcommented fossil code.Stefano Sabatini2011-01-17
|
* Fix weird indent in get_video_frame().Stefano Sabatini2011-01-16
| | | | Originally committed as revision 26390 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent after the last commit.Stefano Sabatini2011-01-15
| | | | Originally committed as revision 26372 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In ffplay, do not open display if -nodisp is set.Stefano Sabatini2011-01-15
| | | | | | Fixes issue 1017. Originally committed as revision 26371 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics: fix weird indent.Stefano Sabatini2011-01-15
| | | | Originally committed as revision 26350 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add AVFrame.pkt_pts that contains the correctly reordered AVPacket.ptsMichael Niedermayer2011-01-07
| | | | Originally committed as revision 26260 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix ffplay -an/-vn options that were swapped by r26105.Nicolas George2010-12-28
| | | | Originally committed as revision 26115 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Support filters and decoders that dont support negative linesizes.Michael Niedermayer2010-12-27
| | | | | | This patch is based on work by stefano. Originally committed as revision 26108 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use av_find_best_stream in ffplay.Nicolas George2010-12-27
| | | | Originally committed as revision 26105 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add avfilter_graph_create_filter().Stefano Sabatini2010-12-02
| | | | Originally committed as revision 25862 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-12
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove graphparser.h header, move AVFilterInOut andStefano Sabatini2010-11-07
| | | | | | | | avfilter_graph_parse() declaration to libavfilter/avfiltergraph.h. Simplify, and less confusing for the user. Originally committed as revision 25705 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename AVFilterInOut field filter to filter_ctx, more semantically correct.Stefano Sabatini2010-11-07
| | | | Originally committed as revision 25700 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename avfilter_graph_destroy() to avfilter_graph_free().Stefano Sabatini2010-11-04
| | | | | | | | The new name is shorter and more consistent with the rest of the API. This change breaks libavfilter API/ABI. Originally committed as revision 25674 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avfilter_graph_alloc().Stefano Sabatini2010-11-04
| | | | Originally committed as revision 25673 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove usage of deprecated libavcodec/audioconvert.h functions.Stefano Sabatini2010-11-03
| | | | Originally committed as revision 25668 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement a common get_filtered_video_frame(), shared between ffplay.cStefano Sabatini2010-10-18
| | | | | | and ffmpeg.c. Originally committed as revision 25520 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add avfilter_graph_config().Stefano Sabatini2010-10-16
| | | | Originally committed as revision 25502 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize definition of the output_filter defined in both ffplay.c andStefano Sabatini2010-10-12
| | | | | | | ffmpeg.c. Replace it with a more generic definition which can be shared. Originally committed as revision 25453 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix timebase handling at the begin and at the end of the ffplay videoStefano Sabatini2010-10-12
| | | | | | | | | filterchain. Set timebase in the ffplay input, and make get_filtered_video_frame() rescale the output frames PTSes according to their timebase. Originally committed as revision 25450 to svn://svn.ffmpeg.org/ffmpeg/trunk