summaryrefslogtreecommitdiff
path: root/fftools/ffplay.c
Commit message (Collapse)AuthorAge
* ffplay: fix autoexit doesn't work in the case of pb->errorZhao Zhili2020-09-08
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: do not set redundant channel count on abuffersink.Nicolas George2020-08-20
|
* ffplay: set stream_index to -1 earlier to prevent segfaultPeter Ross2020-04-25
| | | | | Signed-off-by: Peter Ross <pross@xvid.org> Reviewed-by: Marton Balint <cus@passwd.hu>
* ffplay: flush correct stream after stats updateGyan Doshi2020-04-04
| | | | Stats and logs are written to stderr, not stdout.
* ffplay: always show stats at all log levels if requested by userGyan Doshi2020-04-04
| | | | | | | Since 3b491c5a500, stats would be hidden if loglevel was lower than info, even if -stats was set. Fixes #6962
* ffplay, avcodec, avformat: Don't initialize before av_packet_ref()Andreas Rheinhardt2020-03-28
| | | | | | | It already initializes the packet. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
* fftools/ffplay: fix possible memory leak in decoderMarton Balint2020-03-08
| | | | | | Fixes ticket #8549. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: properly detect all window size changesMarton Balint2019-08-14
| | | | | | | | | | | | | | SDL_WINDOWEVENT_SIZE_CHANGED should be used instead of SDL_WINDOWEVENT_RESIZED because SDL_WINDOWEVENT_RESIZED is only emitted if the resize happened due to an external event. Fixes ticket #8072. Additional references: https://bugzilla.libsdl.org/show_bug.cgi?id=4760 https://wiki.libsdl.org/SDL_WindowEventID Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: added option always on top for video windowDaniel Kucera2019-05-20
| | | | | Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Daniel Kucera <github@danman.eu>
* ffplay: add support for setting the number of filter threadsMarton Balint2019-02-07
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: add missing avfilter_graph_alloc result checkMarton Balint2019-02-07
| | | | | | Also do not allocate a graph at start, we will reallocate it anyway. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: use different decoder names for each media typeMarton Balint2019-02-07
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: fix -x and -y options when only one of them is usedMarton Balint2018-12-02
| | | | | | | | | | Previously if only -y was used then nothing happened, if only -x then zero window height was set which is undefined in SDL and caused a black window. From now on if only one dimension is set we calculate the other based on size/aspect of the shown content. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: convert float math to int math in calculate_display_rectMarton Balint2018-12-02
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: add options to specify window positionDave Rice2018-10-07
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: add option to allow custom seek intervalGyan Doshi2018-09-05
| | | | At present, left and right keys are hardcoded to seek by 10 seconds.
* ffplay: do not drain existing filters when seekingMarton Balint2018-09-01
| | | | | | | After a seek we drop all frames from the filter anyway. Audio filters already had a similar approach. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: add support for various YUV conversion modesMarton Balint2018-07-13
| | | | | | | SDL from version 2.0.8 has support for full range YUV and specifying BT601/BT709 color space for YUV->RGB conversion. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: ignore keypress events before a window is createdMarton Balint2018-06-20
| | | | | | | | | | Current ffplay code assumes that the read thread is in its main loop before any key events are captured, but apparently on IOS even keypresses without a window are forwared. Fixes ticket #7252. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: Print codec_name if decoder for codec_id could not be found.Carl Eugen Hoyos2018-05-30
| | | | Reviewed-by: Marton Balint
* ffplay: Fix realloc_texture when input texture is NULL.Matt Oliver2018-04-18
| | | | | | | | | SDL_QueryTexture and SDL_DestroyTexture require that the input texture pointer be non-null. Debug builds of SDL will correctly check for this and break program execution. This patch fixes this by checking the status of the texture pointer. Signed-off-by: Matt Oliver <protogonoi@gmail.com>
* lav*,tests: remove several register_all callsJosh de Kock2018-04-02
| | | | | | | avdevice_register_all() is still required to register devices into lavf (this is required due to lavd being somewhat of a hack). Signed-off-by: Josh de Kock <josh@itanimul.li>
* fftools, tools, examples: migrate to AVFormatContext->urlMarton Balint2018-01-28
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: drop lock manager usewm42017-12-26
| | | | Deprecated and useless.
* ffplay: remove usage of AVCodecContext accessorsJames Almer2017-11-15
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* ffplay: use SDL2 audio APIMarton Balint2017-11-06
| | | | | | | | It allows us to specify what kind of audio parameter changes are allowed. Should fix ticket #6721. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: only use hardware accelerated SDL texture formatsMarton Balint2017-11-04
| | | | | | | | | | | | Typically only a small subset of the SDL texture formats are supported directly by the SDL renderer drivers, the rest is software emulated. It's better if libswscale does the format conversion to a hardware-accelerated texture format instead of SDL. This should fix video render slowdowns with some texture formats after 3bd2228d05a05eab5f91ac00b01efac9cb07649b. Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: create the window and the renderer before starting playbackMarton Balint2017-11-04
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* Merge commit 'b3739599bda740ac12d3dde31a331b744df99123'James Almer2017-10-23
| | | | | | | * commit 'b3739599bda740ac12d3dde31a331b744df99123': lavc: Drop deprecated emu edge functionality Merged-by: James Almer <jamrial@gmail.com>
* Merge commit 'c95169f0ec68bdeeabc5fde8aa4076f406242524'James Almer2017-10-01
* commit 'c95169f0ec68bdeeabc5fde8aa4076f406242524': build: Move cli tool sources to a separate subdirectory Merged-by: James Almer <jamrial@gmail.com>