Michael Niedermayer
25308afbb2
wtvdec: Avoid gmtime_r() it breaks compile on windows.
...
Better solutions welcome, this is just a quick fix to unbreak compile.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Peter Ross
fddf0521c6
wtv: calculate ole date correctly (is seconds since 1899-12-30)
14 years ago
Peter Ross
8acab7ae5b
wtv: detect ole date overflow
14 years ago
Reimar Döffinger
d3445a911c
Remove unused variable.
14 years ago
Reimar Döffinger
48b9b7edb3
Replace deprecated url_fseek by avio_seek.
14 years ago
Reimar Döffinger
5ce33e6bc5
Move ifdef to avoid unused variable warnings.
14 years ago
Reimar Döffinger
1795364205
Remove unused variables.
14 years ago
Reimar Döffinger
8c3651f4a5
Fix printf format string, fixes a warning.
14 years ago
Michael Niedermayer
7deaa2b8bd
riffenc/ffmpeg: Fix stream copy
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Reimar Döffinger
5631729c3d
Increase TS packet size detection buffer.
...
Fixes warning message with ticket #68 .
14 years ago
Reimar Döffinger
90f5e991be
Assume some TS packet size instead of failing completely.
...
Fixes ticket #68 .
14 years ago
jan gerber
5901cd6236
oggdec:Correct duration
...
Based on a patch by Reimar Döffinger.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Reimar Döffinger
6266c51538
Simplify condition.
14 years ago
Michael Niedermayer
c60d2be551
mp3enc:simplify
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
e1e8a8ded4
mp3enc:better variable name for the frames field file postion.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
4382bc2ceb
mp3enc: drop nested structs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
f2a90c3b34
mp3enc:use FFMIN()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
01be9331c7
mp3enc:Drop unneeded floating point math.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
ec9a5deb20
mp3enc: drop sum and count bytes instead of bitrates from decoded headers.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
7d62475656
mp3enc: remove unneeded ifdef
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
173c975ead
mp3enc: remove unneeded static const variables.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Peter Belkner
d62bf5d4e7
mp3enc: mux a XING header
...
The patch below provides exactly that to the MP3 muxer. A XING header
containing
* the numer of frames,
* the size, and
* a TOC
is generated.
It's based on an idea by Anton Khirnov (restricted to the number of
frames) found at
http://patches.ffmpeg.org/patch/1891/
The TOC is generated as found in lame's "VbrTag.c".
According to my tests the following reproduces the number of frames, the
size and the TOC in "c.mp3" from "b.mp3" (except a shift due to shorter
XING header generated by FFmpeg):
lame -V2 a.wav b.mp3
ffmpeg -i b.mp3 -acodec copy -y c.mp3
14 years ago
Michael Niedermayer
a565c7b7f2
aiffdec:Rewrite get_meta()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Yusuke Nakamura
45a811b512
mov: fix composition timestamps on movie fragments.
...
This fixes, for instance, the case that there is a track that has some samples with composition time offset and has a track run without sample-composition-time-offsets-present.
14 years ago
Michael Niedermayer
187528441a
avidec: correct frame_offset for seeking
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
5e24098b84
avidec: detect mpeg4 keyframes in indexless avi
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
8799541a0a
Fix standalone compilation of pipe protocol.
...
file_check() is not only used by the file protocol, adjust #ifdef accordingly.
14 years ago
Diego Biurrun
61165a1bba
Fix standalone compilation of WTV demuxer.
14 years ago
Mans Rullgard
eddd580b74
matroskaenc: fix memory leak
...
This fixes a memory leak occurring when no cue points are defined
since commit 91819763
.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Alex Converse
1a5e4fd8c5
Replace strncpy() with av_strlcpy().
14 years ago
Uoti Urpala
0bd433a916
asfdec: fix assert failure on invalid files
...
Add an extra size validity check in asf_read_frame_header(). Without
this asf->packet_size_left may become negative, which triggers an
assertion failure later.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Ronald S. Bultje
7643265505
nutenc: check malloc return values.
14 years ago
Ronald S. Bultje
25588d3b8a
nutenc: don't av_malloc(0).
14 years ago
Ronald S. Bultje
f8b1245922
asfdec: fix parsing of packets that overrun into padding.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Luca Barbato
e3b540b424
Make ffmpeg support generic data stream
...
The patch is the first step to support -dcodec copy
14 years ago
ami_stuff
884f678cfd
Add *.j2k extension to JPEG2000 decoder
...
Some files with *.j2k extension can be found for example here:
http://www.openjpeg.org/index.php?menu=samples
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Reimar Döffinger
148ffcd2ce
Make DV (sub) demuxer set proper pkt->pos values.
...
This makes the avi demuxer create packets with proper pos values
with the file from ticket #140 .
14 years ago
Stefano Sabatini
ce5e49b0c2
replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*
14 years ago
Stefano Sabatini
975a1447f7
Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
zhentan feng
5edb23295e
WTV: Add ff_ prefix to the moved fields.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
zhentan feng
5ab826c165
WTV:move the common variable used by wtvdec.c and wtvenc.c to a new file wtv.h and wtv.c.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
zhentan feng
80a330679f
rename wtv.c to wtvdec.c
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Reimar Döffinger
1a9f9f81b1
Do not drop packets with no valid ->pos set as e.g. DV-in-AVI produces.
...
Fixes ticket #140 .
14 years ago
Michael Niedermayer
ffdc49df25
AVIDEC: use_odmc demuxer specific option. (mostly an exmaple for demuxer specific options)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
492026209b
LAVFAPI: demuxer specific options.
...
(someone please add doxy)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
ce62b35c31
output_example: use avformat_alloc_output_context()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
7d727f1338
LAVFAPI: avformat_alloc_output_context() / simplify usage of muxers.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
a2eef3e9f5
LAVF API: remove AVOutputFormat.set_parameters() the field is unused.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Reimar Döffinger
543f3db978
Read the album_artist, grouping and lyrics metadata.
...
Our muxer writes these out, so we really should support reading them.
Fixes ticket #30 .
14 years ago
Anton Khirnov
85770f2a26
AVOptions: make default_val a union, as proposed in AVOption2.
...
This breaks API and ABI.
14 years ago