Michael Niedermayer
175714c0c3
ffplay: set CODEC_FLAG_EMU_EDGE earlier
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
alexandru_mg3
b93e12fdf4
ffplay: fix memleak if avfilter is disabled
14 years ago
Michael Niedermayer
705c65208a
ffplay: removed unused variable channels.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
301183d9be
replace deprecated av_get_pict_type_char() with av_get_picture_type_char()
14 years ago
Stefano Sabatini
6209669de4
Replace deprecated av_get_pict_type_char() with av_get_picture_type_char().
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Michael Niedermayer
c92a9d069e
ffplay: demuxer specific options support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
35fe66abbc
lavfi: rename AVFilterBufferRefVideoProps.pixel_aspect to sample_aspect_ratio
...
Improve consistency with libavcodec.
This breaks libavfilter API/ABI.
The non-sequential 2.1.0 -> 2.4.0 bump is due to the mess previously
done with the lavfi minor number.
14 years ago
Stefano Sabatini
77e9dee8ae
lavc: add a sample_aspect_ratio field to AVFrame
...
The sample aspect ratio is a per-frame property, so it makes sense to
define it in AVFrame rather than in the codec/stream context.
Simplify application-level sample aspect ratio information extraction,
and allow further simplifications.
14 years ago
Stefano Sabatini
1ba5727242
lavc: add a pkt_pos field to AVFrame
...
This is similar to what was done with pkt_pts. This simplifies the
operation of extracting the pos information from the AVPacket, and
allows further simplifications.
14 years ago
Diego Biurrun
045dd4b928
Replace some commented-out debug printf() / av_log() messages with av_dlog().
14 years ago
Stefano Sabatini
c2606259de
ffplay: move output_picture() code to queue_picture()
...
Move output_picture() code to queue_picture(), and remove it.
Simplify code path.
14 years ago
Stefano Sabatini
4a22ea4da1
ffplay: rename video_refresh_timer() to video_refresh()
...
The new name is shorter and less confusing.
14 years ago
Stefano Sabatini
8adf9bb2cb
ffplay: rename decode_thread to read_thread, parse_tid to read_tid
...
The new names are less misleading and more reciprocally consistent.
14 years ago
Stefano Sabatini
1d6c82d405
ffplay: fix logic for selecting the show mode in case of missing video
...
Also automatically select the show mode only if not specified by the
user.
Fix trac issue #109 .
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Stefano Sabatini
54ad8e06f4
ffplay: name ShowMode enum
...
Help debugging with GDB, maybe cleaner/safer.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Stefano Sabatini
69f58958ce
ffplay: avoid SIGFPE exception in SDL_DisplayYUVOverlay
...
In video_image_display(), fix exception occurring when the size of the
rectangle passed to SDL_DisplayYUVOverlay() is 0x0, which happens when
interactively resizing the SDL window.
This is done by forcing the minimum size to 1x1.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Diego Biurrun
89b503b55f
Lowercase all ff* program names.
14 years ago
Stefano Sabatini
539647c6ff
ffplay: factorize code calling output_packet() in video_thread()
...
Slightly simplify.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Stefano Sabatini
c632a1c205
ffplay: remove reference to unused QETimer symbol
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Stefano Sabatini
ab7fdbab00
ffplay: rename stream_pause() to stream_toggle_pause()
...
The new name is less misleading, since the function will resume the
stream if it is currently paused.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Anton Khirnov
41d0eb1c81
lavc: remove the FF_API_SET_STRING_OLD cruft.
14 years ago
Stefano Sabatini
f521746b83
ffplay: implement -showmode option
...
The new option allows to select the starting show mode.
14 years ago
Stefano Sabatini
f8b8c694e9
ffplay: use symbolic constant values for show_audio
...
Also rename VideoState->show_audio to show_mode.
Improve readability.
14 years ago
Stefano Sabatini
8776f3d22e
ffplay: remove audio_write_get_buf_size() forward declaration
...
Move up the definition of audio_write_get_buf_size(), so that it is
defined before it is used. Simplify.
14 years ago
Stefano Sabatini
a6f395d6c5
ffplay: avoid unnecessary intermediary struct in queue_picture()
...
When CONFIG_AVFILTER, use a AVFrame -> AVPicture cast rather than
explicitely copy the image information from AVFrame to a new
AVPicture.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Stefano Sabatini
c1d4bb5731
ffplay: remove unused field VideoState.dtg_active_format
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Carl Eugen Hoyos
05d33d8655
Fix compilation with --disable-avfilter.
14 years ago
Stefano Sabatini
df149f6ce8
ffplay: fix weird brace placement in video_image_display()
...
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Stefano Sabatini
3338be24e8
ffplay: rename output_picture2() to output_picture()
...
The "2" suffix is confusing.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Stefano Sabatini
1979d3b8a5
ffplay: remove useless intermediary variable dst_pix_fmt in queue_picture()
...
Simplify.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Stefano Sabatini
eef1696628
ffplay: avoid forward declaration for packet_queue_put()
...
Define the function before it is used. Simplify.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Stefano Sabatini
91b27e49d6
ffplay: compact expression in compute_mod()
...
Prefer "return X ? Y : Z" over "if (x) return Y; else return Z",
reduce line count.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
14 years ago
Oskar Arvidsson
dc172ecc6e
Add the notion of pixel size in h264 related functions.
...
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: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
f6d71b3942
ffplay: Set EMU_EDGE if dr1, this is an alternative fix for ticket40.
...
Idea borrowed from mplayer.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Anton Khirnov
80c6e238b0
avio: avio_ prefix for url_set_interrupt_cb.
14 years ago
Michael Niedermayer
9f8008a981
move image check down in ffplay.c
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
454fab721a
Disable dr1 in ffplay for svq1 (fixes ticket40)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
8bce71dff5
Check sizes a bit in ffplay, cant hurt.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Martin Storsjö
648c79624f
ffplay: Don't assume ic->pb is non-null
...
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 3e68b3ba7b
.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Stefano Sabatini
c743a5e287
ffplay: add braces around union definition
...
Fix warning:
ffplay.c: At top level:
ffplay.c:3027: warning: missing braces around initializer
ffplay.c:3027: warning: (near initialization for ‘options[53].u’)
14 years ago
Stefano Sabatini
eb4d1cb90e
ffplay: add existence check on ic->pb in decode_thread()
...
Fix crash if ic->pb is NULL and ic->pb->error is evaluated. This
happens for example with: ffplay photo.jpeg.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
3e68b3ba7b
avio: deprecate url_ferror
...
AVIOContext.error should be used directly instead.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Michael Niedermayer
0b82612d35
ffplay: Continue if the file was appended to.
...
This is a bit experimental
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Benjamin Larsson
76d4c1676f
Add a dummy option -i to ffplay so that it is easy to switch between ffmpeg -i "file" and ffplay -i "file".
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Anton Khirnov
db44ea960d
avio: avio_ prefix for url_fsize
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 76aa876e69
)
14 years ago
Anton Khirnov
66e5b1df36
avio: deprecate url_feof
...
AVIOContext.eof_reached should be used directly instead.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
76aa876e69
avio: avio_ prefix for url_fsize
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
384c9c2fa7
avio: add avio_tell macro as a replacement for url_ftell
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit a2704c9712
)
14 years ago
Anton Khirnov
a2704c9712
avio: add avio_tell macro as a replacement for url_ftell
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago