Anton Khirnov
2cface71ca
nutenc: fix a memleak
This fixes a minor memory leak introduced in 073f8b1 .
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Vladimir Pantelic
de11ee906e
asfdec: subtract the preroll value and thus output 0 based timestamps
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Martin Storsjö
f1f60f5252
lavf: Make make_absolute_url a lavf internal function
This is shared by both applehttp demuxer and protocol.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
15 years ago
Martin Storsjö
bc040cb3e2
applehttp: Fix a typo in a comment
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Stefano Sabatini
68d875addc
lavf: make av_interleave_packet() return meaningful error codes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c5dcb3d493 )
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
15 years ago
Stefano Sabatini
70abc32314
lavf: enable av_dlog message in av_interleaved_write_frame()
Help debugging timestamp issues.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d541c8b468 )
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
15 years ago
Stefano Sabatini
79f43a8cb6
lavf: enable av_dlog() in compute_pkt_fields2()
Turns a comment into an av_dlog() instruction, also add a commented
issues.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 77f21ce464 )
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
15 years ago
Anton Khirnov
b7f2fdde74
avio: rename put_flush_packet -> avio_flush
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Anton Khirnov
35f1023592
avio: deprecate url_close_buf
It's not used anywhere and its return value looks broken.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Anton Khirnov
83fddaeb81
avio: deprecate url_open_buf
It's only used in one place and does the same thing as
avio_alloc_context.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Anton Khirnov
eda4cf92d7
avio: always compile avio_printf, rather than on CONFIG_MUXERS
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Anton Khirnov
d9d86e00b2
avio: avio_ prefix for url_fprintf
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Anton Khirnov
af02073225
avio: change avio_tell/skip from macros to inline functions
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Anton Khirnov
59f65d9579
avio: make url_setbufsize internal.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Anton Khirnov
4839c192de
lavf: move ff_get_v from avio.h to avio_internal.h
And rename it to ffio_read_varlen.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Anton Khirnov
073f8b10d8
nutenc: mux chapters.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
15 years ago
Anton Khirnov
45a8a02a41
lavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes sense
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Stefano Sabatini
c5dcb3d493
lavf: make av_interleave_packet() return meaningful error codes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
15 years ago
Stefano Sabatini
77f21ce464
lavf: enable av_dlog() in compute_pkt_fields2()
Turns a comment into an av_dlog() instruction, also add a commented
issues.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
15 years ago
Stefano Sabatini
d541c8b468
lavf: enable av_dlog message in av_interleaved_write_frame()
Help debugging timestamp issues.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
15 years ago
Ramiro Polla
cbf5d22d24
Remove occurrences of my old email address
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Aurelien Jacobs
6f1260f870
matroskadec: set a default duration also for packets comming from a simple block
15 years ago
Janne Grunau
a03be6e1ba
use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*
15 years ago
Janne Grunau
29ba091136
replace FFMPEG with LIBAV in FFMPEG_CONFIGURATION
also update the multiple inclusion guards in config.h|mak
15 years ago
Ramiro Polla
57149a92f8
Remove occurrences of my old email address.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
15 years ago
Anton Khirnov
fed5676ffe
mp3enc: remove mp3_write_packet(), use ff_raw_write_packet() instead
The two functions are identical, no point in duplicating code here.
15 years ago
Kostya
8312e3fc90
Do not attempt to decode APE file with no frames
This fixes invalid reads/writes with this sample:
http://packetstorm.linuxsecurity.com/1103-exploits/vlc105-dos.txt
15 years ago
Anton Khirnov
1dac4d5547
jvdec: don't use deprecated url_feof()
15 years ago
Kostya Shishkov
1c31b26bdf
Do not attempt to decode APE file with no frames.
This fixes invalid reads/writes with this sample:
http://packetstorm.linuxsecurity.com/1103-exploits/vlc105-dos.txt
15 years ago
Anton Khirnov
56e2ac6b45
id3v2: merge TYER/TDAT/TIME to date tag
15 years ago
Nicolas George
c76374c6db
Use AVERROR_EXIT with url_interrupt_cb.
Functions interrupted by url_interrupt_cb should not be restarted.
Therefore using AVERROR(EINTR) was wrong, as it did not allow to distinguish
when the underlying system call was interrupted and actually needed to be
restarted.
This fixes roundup issues 2657 and 2659 (ffplay not exiting for streamed
content).
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 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>
15 years ago
Anton Khirnov
75b9ed04b9
lavf/utils: dont't explicitly check AVIOContext.error
The error should be caught in write_packet()/write_trailer()
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Peter Ross
7f05c164d8
jv demuxer: prevent video packet size overflow
In the event of overflow, the JV_PADDING state will avio_skip over
any overflow bytes (using JVFrame.total_size).
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Peter Ross
772cb06281
jv demuxer: define JV_PREAMBLE_SIZE instead of hard coding the number
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Peter Ross
20c1281fe3
jv demuxer: calculate palette_size for each frame in read_header
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Peter Ross
bfaefd87dc
Bitmap Brothers JV demuxer
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Peter Ross
435535e411
jv demuxer: prevent video packet size overflow
In the event of overflow, the JV_PADDING state will avio_skip over
any overflow bytes (using JVFrame.total_size).
15 years ago
Peter Ross
57d63d43cf
jv demuxer: define JV_PREAMBLE_SIZE instead of hard coding the number
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
15 years ago
Peter Ross
2f1084ca87
jv demuxer: calculate palette_size for each frame in read_header
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
15 years ago
Marton Balint
5126a8ecbb
Fix av_find_best_stream when providing a wanted stream
In the main loop, stream_number is incremented after checking the stream type,
so the search usually will not find the wanted stream.
This patch eliminates the useless stream_number variable and introduces a new
one, called real_stream_index to store the real stream index of the current
stream, no matter if we are looping through all the streams or only the streams
of a program.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
15 years ago
Marton Balint
fa14610df5
Fix av_find_best_stream when decoder_ret is given and using a related stream
Yet another fix for the code originally designed for use without related_stream.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
15 years ago
Peter Ross
48e0d22251
Bitmap Brothers JV demuxer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
15 years ago
Michael Niedermayer
75a8e0f0ab
Add avio_skip()
15 years ago
Benjamin Larsson
35d7d6f748
Add one more avc intra fourcc and extend the description
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
15 years ago
Michael Niedermayer
3bd624b4ee
Fix url_feof() for file appendings.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
15 years ago
Anton Khirnov
ffb0304593
id3v2: fix typo in error message
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit fb61a7c534 )
15 years ago
Anton Khirnov
fb61a7c534
id3v2: fix typo in error message
Signed-off-by: Mans Rullgard <mans@mansr.com>
15 years ago
Anssi Hannula
b543e1dccf
mpegts: add all stream languages into metadata
This is used at least on some older DVB broadcasts for dual-mono audio
tracks.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 6a7e074eb9 )
15 years ago
Baptiste Coudurier
aa612fbb99
In retry_transfer_wrapper, do not check url_interrupt_cb, causes problems
when writing and pressing q during encoding. Instead, check url_interrupt_cb
at the end.
Note that when a protocol is interrupted by url_interrupt_cb, some data may
be silently discarded: the protocol context is not suitable for anything
anymore.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 688c22e033 )
15 years ago