Martin Storsjö
1de9317bd0
rtpdec_jpeg: Fold the default qtables case into an existing if statement
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
a218deb856
rtpdec_jpeg: Store and reuse old qtables for q values 128-254
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
a252649059
rtpdec_jpeg: Simplify the calculation of the number of qtables
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
cbaa9eeda3
rtpdec_jpeg: Add more comments about the fields in the SOF0 section
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
31adff08a1
rtpdec_jpeg: Clarify where the subsampling magic numbers come from
...
Write out the numbers the way they are constructed, not just the
final values.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
c64d2a63df
rtpdec_jpeg: Don't use a bitstream writer for the EOI marker
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
20f325f320
rtpdec_jpeg: Don't needlessly use a bitstream writer for the header
...
Everything written with this bitstream writer is 8/16 bit units
(except for a pair of 4 bit values), so using a bitstream writer
isn't necessary.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
43957fcc71
rtpdec_jpeg: Simplify writing of the jpeg header
...
Generalize writing of any number of qtables. Don't manually write
16 bit values in two separate calls.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
932d8300d3
rtpdec_jpeg: Merge two if statements
...
This makes the code more readable and robust.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
7ef4323405
rtpdec_jpeg: Write the DHT section properly
...
Currently the size header of the generated DHT section is
incorrect, making the mjpeg decoder just skip it. Since the
written huffman tables are the default ones, this failure had
gone undetected.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
23e9e5c7d9
rtmpproto: reorder some expressions to fix compilation with clang without optimizations
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
e592fd0ed1
lavf/flvenc: convert commented debug log to an av_dlog call
...
Also add some additional info (DTS and DTS time).
13 years ago
Samuel Pitoiset
55e778bebd
rtpdec_jpeg: Add support for default quantizers
...
Generate quantization tables when they are not present in the
first chunk.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
ee0dadc109
flvdec: always set AVFMTCTX_NOHEADER.
...
New streams may be created at any time, e.g. on codec change.
13 years ago
Michael Niedermayer
8470e6c96f
lavf/avformat_seek_file: fix harmless integer overflow
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
00d516454c
lavf/segment: add segment_list_flags option
...
Allow to specify options affecting the segment list generation.
In particular: add +live and +cache flags.
For a full discussion read trac ticket #1642 :
http://ffmpeg.org/trac/ffmpeg/ticket/1642
Also add live M3U8 generation example.
13 years ago
Michael Niedermayer
b3b27b63a0
mpegtsenc: add forgotten ()
...
Fixes integer overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
0697d81269
file: Use a normal private context for storing the file descriptor
...
Previously the file descriptor was stored in the priv_data pointer.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Sébastien Brochet
e14725cecc
add OTF support for attachments
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
41dba453f9
utils/update_stream_timings: fix division by zero
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
108957c661
avidec/guess_ni_flag: fix harmless integer overflow
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b422e2c58a
compute_pkt_fields: fix harmless integer overflow
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Samuel Pitoiset
3c19815416
rtp: Depacketization of JPEG (RFC 2435)
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Derek Buitenhuis
16c03f2e91
file: Add S_ISFIFO compatability macro
...
Not all systems have S_ISFIFO.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
07108cafc6
gxfenc: assert that the to be written data has not been truncated.
...
Otherwise out of array reads would happen later
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
eb336cb881
gxfenc: dont duplicate buffer size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
59fdf543d5
smush: read subversion for version==1 too.
...
This avoids a gcc warning, otherwise it should have no effect.
its a bit more consistent too
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b86e18fe46
yuv4mpeg: fix potential alignment bug
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8a0118b4b4
ffio_read: dont spam the user at EOF with a truncation error
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5710dbf88c
mpegts: Fix potential memory leak in mpegts_read_packet()
...
This leak can happen in case of some error paths.
Found-by: Tanami, Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9a27fd12f3
avio: replace ETIMEDOUT by EIO
...
ETIMEDOUT is not available on all platforms
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
7b699d8136
mov_chan: Only set the channel_layout if setting it to a nonzero value
...
If regularly parsing new chan atoms (as in rtpdec_qt), but the
chan atoms don't actually contain any channel layout, don't reset
the value that the caller has filled in (by guessing).
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
5f72bc02f8
mov_chan: Reindent an incorrectly indented line
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Carl Eugen Hoyos
407eeb3474
mp2 muxer: mark as AVFMT_NOTIMESTAMPS.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Derek Buitenhuis
af2a17c09a
cache: Only include unistd.h if it exists
...
This follows suite from f3be359707
.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ronald S. Bultje
f3be359707
file: Only include unistd.h if it exists
...
It is included for the open/read/write/close functions. On
MSVC, where this header does not exist, the same functions
are provided by io.h, which is already included.
On windows, these functions are provided by io.h. Make sure
io.h is included if it exists, regardless of the setmode
function.
Signed-off-by: Martin Storsjö <martin@martin.st>
Conflicts:
configure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ronald S. Bultje
9d0bc5c0bd
rtpdec: Don't explicitly include unistd.h any longer
...
unistd.h used to be required for gethostname. On windows, gethostname
is provided by winsock2.h. Now network.h includes both unistd.h and
winsock2.h if they exist.
Signed-off-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Derek Buitenhuis
1d4c4b0fbc
wtvdec: Remove unused strings.h header
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
25f139e72f
lavf/utils: fix typo in has_codec_parameters
...
Replace "unspecified sample size" with "unspecified frame size". +10l.
13 years ago
Tomas Härdin
d74af89317
img2dec: Don't leave AVIOContexts open on zero byte files
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a7fbc7d7b7
lavf: factor codec id forcing out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Samuel Pitoiset
9afb7061f9
mov_chan: Pass a separate AVIOContext for reading
...
This fixes crashes when called from rtpdec_qt, where
AVFormatContext->pb is null, a crash present since 3bab7cd128
.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Stefano Sabatini
da2ea7c33c
lavf/flvenc: apply various log fixes/clarifications
...
Should improve user feedback in case of errors.
13 years ago
Stefano Sabatini
1bd6b0c927
lavf/flvenc: return meaningful error codes
13 years ago
rogerdpack
ef122ff507
eliminate some mingw warnings
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
29e972f67c
lavu/parseutils: add av_small_strptime()
...
Make internal small_strptime() function public, and use it in place of
strptime().
This allows to avoid a dependency on strptime() on systems which do not
support it.
In particular, fix trac ticket #992 .
13 years ago
Clément Bœsch
5620088494
lavf: fix a few typo in some comments.
13 years ago
Clément Bœsch
9d9f34a3c1
lavf: remove a few useless AV_NOWARN_DEPRECATED().
...
read_seek was undeprecated in e5c708151
.
13 years ago
Martin Storsjö
e6153f173a
avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
d58dd4b5b5
avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago