Michael Niedermayer
189fbcede8
tak_parser: check ff_combine_frame() return code
...
Fixes CID733706
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
6c8d259ab1
msmpeg4dec: fix init code to not fail when called from 2 threads at the same time.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f44be0da94
ff_h263_decode_init_vlc: fix order of operations to avoid failure with 2 threads
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Xidorn Quan
c25e9292ba
fix a compiling error with llvm-gcc
...
Move some #include in vda.h down to prevent libavutil headers
from interfering with system headers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Bradshaw
c430cb49fd
Update my email address
...
Signed-off-by: Michael Bradshaw <mjbshaw@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
eb36ee1ee1
lavc/srtenc: fix invalid read in case of SubRip.
...
Regression since 6057de19b
. The ptr-2 is used to eat the \r\n and add
the position information on the timing line. This can't be done in case
of SubRip where the timing isn't present in the payload.
Note that we can't use yet the side data to transmit the position
information since the encode subtitles API is still using buffer+size
instead AVPacket as input.
13 years ago
Diego Biurrun
87cdd7c694
ivi_common: Drop unused function parameter from decode_band()
13 years ago
Diego Biurrun
707f58f515
cook: Remove some silly Doxygen comments
13 years ago
Diego Biurrun
8a61ba0e81
cook: Remove senseless maybe_reformat_buffer32() function
13 years ago
Diego Biurrun
f23b4a0682
cook: cosmetics: Better names for joint_decode() function parameters
13 years ago
Diego Biurrun
20015379a4
cook: cosmetics: Better name for ccpl COOKSubpacket member
13 years ago
Janne Grunau
154ff81870
h263: avoid memcpys over array bound in motion vector caching for obmc
...
Fixes CID602232.
13 years ago
Michael Niedermayer
9f36ec6aa9
aacps: fix order of operands of ipdopd_reset().
...
With the current implementation this is purely cosmetic
Fixes CID732285
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0018aa9013
aacps: loose self assignment
...
Fixes CID604123
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f69f9b3876
aacenc: replace scale factor warning by assert
...
The code would crash after printing the warning
Fixes CID717903, CID717904
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
04a585f054
fraps: use meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
d8245c3bcd
dsicinav: return proper error code in case of malloc failure
...
Fixes null pointer dereference.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Paul B Mahol
296f9c2b3b
dsicinav: return meaningful error code
...
While here remove redundant references in error message.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
da4e4d65f4
aacdec: reorder multiuplications to make code safer against too large input values.
...
Fixes CID700697
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
5bac2d0c30
avutil: Move memcpy_backptr() to mem.c
...
The function is used elsewhere and does not belong with the LZO code.
13 years ago
Michael Niedermayer
d312ffdd79
mpegvideo: fix lowres on field pictures
...
Fixes Ticket1846
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a1af505d66
roqaudioenc: remove dead code
...
Fixes CID703669
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
c27b3816e4
srt: make the demuxer output SubRip packets.
...
The SRT format should never have outputted CODEC_ID_SRT packets in the
first place: SRT is a subtitle format containing SubRip text markup
events. The timing information is part of the format, not the codec, and
thus CODEC_ID_SRT should not exist.
Creating packets with the timing information within the payload only
leads to problem (such as remuxing with timing alteration not working),
especially when the SubRip markup is being used in container like
Matroska in addition to this standalone SRT format.
The main reason the timing line was included in those CODEC_ID_SRT
packets is likely because it contained extra information (the event
position) the codec actually needs. This issue is solved by using the
AV_PKT_DATA_SUBTITLE_POSITION side data type.
13 years ago
Clément Bœsch
4d46fd0b3e
lavc: add AV_PKT_DATA_SUBTITLE_POSITION side data type.
...
This commit introduces a new packet side data type for the subtitle
position information. This is meant to be used by the SRT format where
that information is stored along with the timing, which is not part of
the subrip packets.
13 years ago
Clément Bœsch
60d9ee1b75
lavc/utils: make sub decode consistent with A/V.
...
This allows side data to be transmitted properly with subtitles.
13 years ago
Paul B Mahol
6ddb03caf0
pgmyuvenc: do not create files which are not supported
...
It is possible to support files with odd width and/or height
if real width and height are stored in header.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Anton Khirnov
5a9567631a
g.723.1: add missing CODEC_CAP_DR1
13 years ago
Anton Khirnov
1bc64c2814
lavc: initialize output AVFrame before decoding.
...
Avoids memleaks with audio when extended_data is nontrivial and the user
doesn't reset the frame.
Shouldn't have any effect for video for now, but might be useful in the
future.
13 years ago
Michael Niedermayer
3556e7ce73
mpegvideo enc: choose VBV buffer size for mpeg4 when none is specified instead of failing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1856162caa
mpegvideo enc: choose VBV buffer size for mpeg1/2 when none is specified instead of failing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
4a227a706d
lavc/utils: fix a few grammar/style nits in log messages
...
In avcodec_open2(), apply consistent casing and avoid "or" conjunction at
the beginning of a sentence, in the messages issued in case of
experimental codec usage.
13 years ago
Stefano Sabatini
5ffadec30a
lavc/utils: propagate or return meaningful error codes in avcodec_open2()
13 years ago
Justin Ruggles
c68317ebbe
lavc: fix documentation for AVCodecContext.delay
13 years ago
Justin Ruggles
44d854a518
atrac3: return an error if extradata_size is not a specific known size
...
Also fixes 3 compiler warnings about using uninitialized variables.
13 years ago
Justin Ruggles
a5ef830b12
lavc: use the correct API version guard macro for avcodec_encode_audio()
13 years ago
Mans Rullgard
a153e45b95
dfa: use av_memcpy_backptr() where previously impossible
...
Since the requirement for output padding has been lifted, we can
use av_memcpy_backptr() here as well.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
e831b3b852
av_memcpy_backptr: Drop no longer necessary malloc padding
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Paul B Mahol
e2820d99f2
pnmdec: use more meaningful error codes
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Diego Biurrun
330b864cda
dsputil: Replace AV_WNxx(AV_RNxx()) combinations by AV_COPYxxU
13 years ago
Diego Biurrun
aa91fe8091
dxtory: Replace AV_WN16A(AV_RN16A()) combination by AV_COPY16
13 years ago
Luca Barbato
0c03cc6838
mp3: exit on parsing error in mp_decode_frame
...
Properly forward mp_decode_layer3 errors, mp_decode_layer1 and
mp_decode_layer2 do not return errors.
Based on a patch by Michael Niedermayer.
13 years ago
Luca Barbato
9ab0874ea8
mp3: properly forward mp_decode_frame errors
...
The function can return either a parsing error or a memory management
error.
13 years ago
Mans Rullgard
fab0a8b2c6
libm: add fallbacks for various single-precision functions
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Michael Niedermayer
ec444c84cf
mpegaudiodec: Fix buffer handling on random access
13 years ago
Diego Biurrun
2f17f265ed
mpegaudio: Refactor mp3on4 flush function
13 years ago
Diego Biurrun
8f4c414df6
Improve wording and spelling of av_log_missing_feature messages.
13 years ago
Anton Khirnov
c6b25d1d5e
Revert "avutil: Add a copy of ff_sqrt_tab back into avutil to restore ABI compatibility"
...
This reverts commit d15c21e5fa
.
After the major bump this is no longer necessary.
13 years ago
Michael Niedermayer
34ccb94796
g723_1: remove unneeded cliping
...
Fixes CID703731
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e9b61fffbe
g722dec: s/Libav/FFmpeg/ The copyright years predate the existence of Libav
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
da317efd92
j2k: reorder multiplications to avoid interger overflows related to precincts
...
Fixes CID703778, CID703777
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago