Statistics
| Branch: | Revision:

ffmpeg / libavformat / utils.c @ 17929c04

History | View | Annotate | Download (87.2 KB)

# Date Author Comment
3ce16b30 03/24/2005 01:51 AM Michael Niedermayer

discard dummy packets before doing inapropriate checks on them and failing as a result

Originally committed as revision 4078 to svn://svn.ffmpeg.org/ffmpeg/trunk

f3356e9c 03/17/2005 01:25 AM Michael Niedermayer

more fine grained discarding of packets

Originally committed as revision 4051 to svn://svn.ffmpeg.org/ffmpeg/trunk

27a5fe5f 03/13/2005 12:13 AM Michael Niedermayer

keyframe & non keyframe index fixes

Originally committed as revision 4034 to svn://svn.ffmpeg.org/ffmpeg/trunk

85ad5695 02/26/2005 03:36 AM Michael Niedermayer

shorten decoder by (Jeff Muizelaar <jrmuizel gmail com>)

Originally committed as revision 3984 to svn://svn.ffmpeg.org/ffmpeg/trunk

88730be6 02/24/2005 07:08 PM Måns Rullgård

kill warnings patch by (Måns Rullgård <mru inprovide com>)

Originally committed as revision 3977 to svn://svn.ffmpeg.org/ffmpeg/trunk

a603bf8d 01/29/2005 02:27 AM Michael Niedermayer

dont predict missing timestamps if we lack the required information to do so

Originally committed as revision 3898 to svn://svn.ffmpeg.org/ffmpeg/trunk

88805317 01/27/2005 04:11 PM Roine Gustafsson

support colon-separated rates patch by Roine Gustafsson <roine AT users DOT sourceforge DOT net>

Originally committed as revision 3892 to svn://svn.ffmpeg.org/ffmpeg/trunk

b9866ebc 01/22/2005 01:36 PM Michael Niedermayer

support discarding uninterresting packets

Originally committed as revision 3860 to svn://svn.ffmpeg.org/ffmpeg/trunk

e19456e3 01/22/2005 02:30 AM Michael Niedermayer

fixing demuxing for short files where the framerate detection failed

Originally committed as revision 3859 to svn://svn.ffmpeg.org/ffmpeg/trunk

0ecca7a4 01/12/2005 12:16 AM Michael Niedermayer

various security fixes and precautionary checks

Originally committed as revision 3822 to svn://svn.ffmpeg.org/ffmpeg/trunk

568e18b1 01/08/2005 02:21 PM Michael Niedermayer

integer overflows, heap corruption
possible arbitrary code execution cannot be ruled out in some cases
precautionary checks

Originally committed as revision 3813 to svn://svn.ffmpeg.org/ffmpeg/trunk

96db7add 01/03/2005 08:33 PM Michael Niedermayer

10l

Originally committed as revision 3798 to svn://svn.ffmpeg.org/ffmpeg/trunk

53756443 12/22/2004 01:33 AM Michael Niedermayer

1/0l fix

Originally committed as revision 3770 to svn://svn.ffmpeg.org/ffmpeg/trunk

b3506cb4 12/21/2004 02:27 AM Michael Niedermayer

prefer integer fps if possible when guessing

Originally committed as revision 3769 to svn://svn.ffmpeg.org/ffmpeg/trunk

3e76d1b5 12/21/2004 02:16 AM Michael Niedermayer

guess fps for the variable fps case

Originally committed as revision 3768 to svn://svn.ffmpeg.org/ffmpeg/trunk

15bc38e5 12/19/2004 01:23 AM Michael Niedermayer

try to guess the fps if they are variable

Originally committed as revision 3760 to svn://svn.ffmpeg.org/ffmpeg/trunk

90bb394d 12/15/2004 02:36 AM Michael Niedermayer

workaround some broken mpeg-ps timestamps

Originally committed as revision 3755 to svn://svn.ffmpeg.org/ffmpeg/trunk

5edea431 12/14/2004 04:19 PM Michael Niedermayer

some sanity checks on what is muxed, invalid timestamps in mpeg are very common and lead to strange errors in the mpeg muxer otherwise

Originally committed as revision 3752 to svn://svn.ffmpeg.org/ffmpeg/trunk

7984bbe2 12/14/2004 12:04 PM Michael Niedermayer

fix timestamp prediction for low_delay mpeg streams

Originally committed as revision 3751 to svn://svn.ffmpeg.org/ffmpeg/trunk

d43ed92d 12/06/2004 12:15 AM Michael Niedermayer

use pts based duration/bitrate guessing code for mpeg-ts

Originally committed as revision 3731 to svn://svn.ffmpeg.org/ffmpeg/trunk

f9a35124 12/06/2004 12:08 AM Michael Niedermayer

fixing pipe seek bug

Originally committed as revision 3730 to svn://svn.ffmpeg.org/ffmpeg/trunk

0d712409 12/01/2004 02:28 AM Michael Niedermayer

fifo_realloc()

Originally committed as revision 3726 to svn://svn.ffmpeg.org/ffmpeg/trunk

1b307feb 11/30/2004 06:45 PM Michael Niedermayer

fixing playback of ftp://ftp.mplayerhq.hu/MPlayer/incoming/blender_raw.avi

Originally committed as revision 3723 to svn://svn.ffmpeg.org/ffmpeg/trunk

f37b9768 11/28/2004 06:29 PM Loren Merritt

split ffhuffyuv into 2 codecs:
"huffyuv" is compatible with the official version
"ffvhuff" contains our improvements

Originally committed as revision 3720 to svn://svn.ffmpeg.org/ffmpeg/trunk

dc56fc38 11/23/2004 06:23 PM Michael Niedermayer

int / int64 fix by (Wolfram Gloger <wmglo @ dent:med:uni-muenchen:de>)

Originally committed as revision 3704 to svn://svn.ffmpeg.org/ffmpeg/trunk

61c7c3e3 11/13/2004 05:35 PM Michael Niedermayer

raw h261 demuxing fix

Originally committed as revision 3680 to svn://svn.ffmpeg.org/ffmpeg/trunk

ae214ac3 11/12/2004 10:51 PM Michael Niedermayer

try to guess the codec for imag2pipe too

Originally committed as revision 3674 to svn://svn.ffmpeg.org/ffmpeg/trunk

5b6d5596 11/11/2004 06:09 PM Michael Niedermayer

move p*m from image/lavf -> image2/lavc
video/audio_codec_id in AVFormatParameters to override/help demuxer
av_guess_codec() to guess the default codecs based upon muxer + filename

Originally committed as revision 3668 to svn://svn.ffmpeg.org/ffmpeg/trunk

4eff7cf4 11/09/2004 11:31 PM Michael Niedermayer

porting png support from -f image to -f image2

Originally committed as revision 3665 to svn://svn.ffmpeg.org/ffmpeg/trunk

d07730dd 11/08/2004 11:36 PM Michael Niedermayer

fix image stream copy

Originally committed as revision 3662 to svn://svn.ffmpeg.org/ffmpeg/trunk

1a1dc611 10/22/2004 01:15 PM Nathan Kurz

bug in libavformat av_update_cur_dts(), patch by (Nathan Kurz <nate at verse dot com>)

Originally committed as revision 3622 to svn://svn.ffmpeg.org/ffmpeg/trunk

5ba7c3d7 10/22/2004 01:51 AM Michael Niedermayer

set keyframe flag at a more central place instead of in every demuxer for containers which only store intra only streams

Originally committed as revision 3620 to svn://svn.ffmpeg.org/ffmpeg/trunk

528c2c73 10/13/2004 11:58 PM Michael Niedermayer

fix assertion failure in case of timestamp discontinuities

Originally committed as revision 3592 to svn://svn.ffmpeg.org/ffmpeg/trunk

8bcb147f 10/12/2004 10:28 AM Michael Niedermayer

generic cur_dts update
removing cur_dts update code from dv again, i think its not needed

Originally committed as revision 3588 to svn://svn.ffmpeg.org/ffmpeg/trunk

eb497825 10/11/2004 07:42 PM Nathan Kurz

default stream timebase docs patch by (Nathan Kurz <nate at verse dot com>)

Originally committed as revision 3581 to svn://svn.ffmpeg.org/ffmpeg/trunk

d0f3f159 10/11/2004 05:12 PM Wolfram Gloger

print start_time patch by (Wolfram Gloger <wmglo at dent dot med dot uni-muenchen dot de>)

Originally committed as revision 3580 to svn://svn.ffmpeg.org/ffmpeg/trunk

3ba1438d 10/10/2004 10:05 PM Michael Niedermayer

use native timebase for seeking
direction flag for seeking

Originally committed as revision 3577 to svn://svn.ffmpeg.org/ffmpeg/trunk

576ae256 10/08/2004 08:09 PM Michael Niedermayer

write error handling

Originally committed as revision 3572 to svn://svn.ffmpeg.org/ffmpeg/trunk

e0c91bc2 10/03/2004 12:58 PM Michael Niedermayer

initial dts fix

Originally committed as revision 3555 to svn://svn.ffmpeg.org/ffmpeg/trunk

7000a175 10/03/2004 02:42 AM Michael Niedermayer

SCR timestamp fix try #1

Originally committed as revision 3550 to svn://svn.ffmpeg.org/ffmpeg/trunk

c40a3a42 10/01/2004 04:30 PM Michael Niedermayer

move free() of AVStream priv data to av_write_trailer()

Originally committed as revision 3548 to svn://svn.ffmpeg.org/ffmpeg/trunk

fe2d6fe2 09/29/2004 11:25 PM Michael Niedermayer

move packet interleaving function into AVOutputFormat, so it can be overriden easily instead of doing reordering twice if the muxer needs some other interleaving then dts based

Originally committed as revision 3540 to svn://svn.ffmpeg.org/ffmpeg/trunk

63dd1377 09/28/2004 09:09 PM Michael Niedermayer

uninitalized variables

Originally committed as revision 3534 to svn://svn.ffmpeg.org/ffmpeg/trunk

8b69867f 08/13/2004 03:30 PM Michael Niedermayer

Minor Patch for shared libs on Mac OSX by (Bill May <wmay at cisco dot com>)

Originally committed as revision 3387 to svn://svn.ffmpeg.org/ffmpeg/trunk

6ba5cbc6 08/12/2004 12:09 AM Petr Doubek

HTTP Authentication Patch by (Petr Doubek <doubek at vision dot ee dot ethz dot ch>)
tested and submitted by (Torsten Spindler <spindler at hbt dot arch dot ethz dot ch>)

Originally committed as revision 3381 to svn://svn.ffmpeg.org/ffmpeg/trunk

53e2f9ca 07/25/2004 11:59 AM Michael Niedermayer

ffserver fixes by (Koos Vriezen <koos.vriezen at xs4all dot nl>)

Originally committed as revision 3340 to svn://svn.ffmpeg.org/ffmpeg/trunk

03cfe134 07/15/2004 06:32 PM Michael Niedermayer

image2 / image API cleanup phase-1
with this its possible to encode&decode any video codec to individual (1 file per frame) files

Originally committed as revision 3319 to svn://svn.ffmpeg.org/ffmpeg/trunk

0ff7199f 06/30/2004 05:34 PM Michael Niedermayer

fix first timestamp when decoding mpeg-ps

Originally committed as revision 3274 to svn://svn.ffmpeg.org/ffmpeg/trunk

6f824977 06/22/2004 09:14 PM Michael Niedermayer

flush audio encoder buffers at the end
fix vorbis in nut again

Originally committed as revision 3244 to svn://svn.ffmpeg.org/ffmpeg/trunk

cf7eef66 06/20/2004 11:28 AM Michael Niedermayer

1000l

Originally committed as revision 3241 to svn://svn.ffmpeg.org/ffmpeg/trunk

a6a92a9a 06/11/2004 10:03 PM Wolfram Gloger

user specified start time offset
frame dup/drop info
typos
patch by (Wolfram Gloger <wmglo at dent dot med dot uni-muenchen dot de>)

Originally committed as revision 3217 to svn://svn.ffmpeg.org/ffmpeg/trunk

3c895fc0 05/29/2004 06:50 PM Michael Niedermayer

correctly interleave packets during encoding
dts/pts fixed for streamcopy
dont use coded_frame->key_frame hack in muxers, use AVPacket.flags instead

Originally committed as revision 3171 to svn://svn.ffmpeg.org/ffmpeg/trunk

e928649b 05/29/2004 02:06 AM Michael Niedermayer

pass AVPacket into av_write_frame()
fixes the random dts/pts during encoding
asf preroll fix
no more initial zero frames for b frame encoding
mpeg-es dts during demuxing fixed
.ffm timestamp scale fixed, ffm is still broken though

Originally committed as revision 3168 to svn://svn.ffmpeg.org/ffmpeg/trunk

4fc2c644 05/24/2004 03:13 PM Michael Niedermayer

100l (avi seeking)

Originally committed as revision 3155 to svn://svn.ffmpeg.org/ffmpeg/trunk

77405fc8 05/23/2004 09:36 PM Michael Niedermayer

cur_dts in native timebase

Originally committed as revision 3153 to svn://svn.ffmpeg.org/ffmpeg/trunk

cdd5034f 05/23/2004 04:26 PM Michael Niedermayer

store index for seeking in the native timebase of each stream
set correct timebase for nut
merge mpeg-ts seeking with existing seeking code
10l fix in mpegts (27mhz vs. 90khz)

Originally committed as revision 3152 to svn://svn.ffmpeg.org/ffmpeg/trunk

9ee91c2f 05/21/2004 08:43 PM Michael Niedermayer

move time_base (pts_num/pts_den) from AVFormatContext -> AVStream

Originally committed as revision 3148 to svn://svn.ffmpeg.org/ffmpeg/trunk

293ed23f 04/27/2004 02:55 AM Michael Niedermayer

NULL pointers ...

Originally committed as revision 3080 to svn://svn.ffmpeg.org/ffmpeg/trunk

8d14a25c 04/12/2004 04:50 PM Michael Niedermayer

moving nearly identical binary search code from nut/mpeg/asf to utils.c

Originally committed as revision 3003 to svn://svn.ffmpeg.org/ffmpeg/trunk

c9247fc3 04/07/2004 09:33 PM Michael Niedermayer

dont reduce the min_distance of AVIndexEntry

Originally committed as revision 2979 to svn://svn.ffmpeg.org/ffmpeg/trunk

b0c7f5a9 04/04/2004 06:33 PM Michael Niedermayer

move zero size hack from ogg.c to utils.c

Originally committed as revision 2959 to svn://svn.ffmpeg.org/ffmpeg/trunk

6d8f985e 04/04/2004 02:39 PM Michael Niedermayer

fix obnoxious ogg_packet passing from encoder to muxer

Originally committed as revision 2955 to svn://svn.ffmpeg.org/ffmpeg/trunk

8bfed902 04/04/2004 01:10 AM Michael Niedermayer

remove spyware from ogg*.c
fix vorbis in ogg decoding

Originally committed as revision 2952 to svn://svn.ffmpeg.org/ffmpeg/trunk

43465395 03/03/2004 05:53 PM Michael Niedermayer

av_log() cleanup
null pointer segfaults
dont print redundant spam
dont print prefix if reference==NULL
class -> av_class
dont copy AVClass to every object, its a waste of memory and not a good idea at all

Originally committed as revision 2841 to svn://svn.ffmpeg.org/ffmpeg/trunk

bc874dae 03/03/2004 03:41 PM Michel Bardiaux

av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)

Originally committed as revision 2840 to svn://svn.ffmpeg.org/ffmpeg/trunk

2092bd75 02/20/2004 02:39 PM Gildas Bazin

avsync patch by (Gildas Bazin <gbazin at altern dot org>)

Originally committed as revision 2805 to svn://svn.ffmpeg.org/ffmpeg/trunk

3e9245a9 01/17/2004 06:06 PM Michael Niedermayer

store searched distance in index, so we dont waste time searching for keyframes where we already searched
asf seek fixes & use keyframe pos/timestamp cache

Originally committed as revision 2709 to svn://svn.ffmpeg.org/ffmpeg/trunk

b754978a 01/13/2004 10:02 PM Michael Niedermayer

caching of timestamps for mpeg-ps so seeking is faster
move (av_)find_stream_index() to utils.c as its usefull outside mpeg.c
assert checking enabled, to find bugs quicker, should obviously be disabled later
(av_)add_index_entry() inserts new entries so that the list stays ordered and updates entries if already in it...

6ec87caa 12/16/2003 11:21 AM Fabrice Bellard

fixed incorrect PTS/DTS logic in MPEG video case (caused rare PTS glitches if start codes were between two PES packets)

Originally committed as revision 2620 to svn://svn.ffmpeg.org/ffmpeg/trunk

37353960 12/15/2003 02:45 PM Fabrice Bellard

make av_read_frame() return buffered frames at EOF

Originally committed as revision 2616 to svn://svn.ffmpeg.org/ffmpeg/trunk

8a56ac7b 12/09/2003 03:34 PM Fabrice Bellard

copy packet without omitting the padding

Originally committed as revision 2584 to svn://svn.ffmpeg.org/ffmpeg/trunk

bcbecff1 11/20/2003 11:22 AM Fabrice Bellard

fixed memory leak

Originally committed as revision 2525 to svn://svn.ffmpeg.org/ffmpeg/trunk

fb2758c8 11/10/2003 06:37 PM Fabrice Bellard

initial av_read_frame() and av_seek_frame() support

Originally committed as revision 2494 to svn://svn.ffmpeg.org/ffmpeg/trunk

da24c5e3 10/29/2003 02:20 PM Fabrice Bellard

make AVFMT_NOHEADER flag dynamic - added av_open_input_stream()

Originally committed as revision 2447 to svn://svn.ffmpeg.org/ffmpeg/trunk

0bf92f79 10/26/2003 10:49 AM Panagiotis Issaris

GCC 3.3.2 warnings patch by (Panagiotis Issaris <takis at lumumba dot luc dot ac dot be>)

Originally committed as revision 2440 to svn://svn.ffmpeg.org/ffmpeg/trunk

f71869a4 09/08/2003 09:20 PM Fabrice Bellard

simpler strptime - added os_support.[ch] - moved localtime_r to os_support.c

Originally committed as revision 2228 to svn://svn.ffmpeg.org/ffmpeg/trunk

4358d5de 09/08/2003 08:04 PM Fabrice Bellard

removed ctype.h header

Originally committed as revision 2225 to svn://svn.ffmpeg.org/ffmpeg/trunk

0a5f92a1 09/07/2003 09:26 AM Michael Niedermayer

memory leak fix by (Tom Dexter <devel at www dot digitalaudiorock dot com>)

Originally committed as revision 2216 to svn://svn.ffmpeg.org/ffmpeg/trunk

904736b5 08/29/2003 05:27 PM Roman Shaposhnik

1000l in abbrv. table

Originally committed as revision 2179 to svn://svn.ffmpeg.org/ffmpeg/trunk

ba2a8cb4 08/29/2003 06:58 AM Roman Shaposhnik
  • making resolution abbreviations right * introducing sntsc/spal for square pixel ntsc/pal

Originally committed as revision 2177 to svn://svn.ffmpeg.org/ffmpeg/trunk

22b37f5d 08/24/2003 09:20 PM Fabrice Bellard

suppressed frame number modulus hack - added loop_input hack which I find easier to understand

Originally committed as revision 2151 to svn://svn.ffmpeg.org/ffmpeg/trunk

00b4fdb7 08/24/2003 01:59 PM Fabrice Bellard

win32 compile fix

Originally committed as revision 2139 to svn://svn.ffmpeg.org/ffmpeg/trunk

c9245417 08/21/2003 09:04 PM Roman Shaposhnik

all human-readable output should go into stderr for now. We really
need a generic logging facility in ffmpeg, but this will suffice for now.

Originally committed as revision 2131 to svn://svn.ffmpeg.org/ffmpeg/trunk

48091512 08/08/2003 06:13 PM Fabrice Bellard

no default bit rate if decoding

Originally committed as revision 2117 to svn://svn.ffmpeg.org/ffmpeg/trunk

12f996ed 08/08/2003 06:02 PM Fabrice Bellard

initial duration/start_time generic support - displays stream duration and average total bitrate when using an input file

Originally committed as revision 2115 to svn://svn.ffmpeg.org/ffmpeg/trunk

afdd82bb 07/16/2003 07:50 AM Fabrice Bellard

fix fmt == NULL case

Originally committed as revision 2050 to svn://svn.ffmpeg.org/ffmpeg/trunk

b6892136 07/15/2003 04:57 PM Fabrice Bellard

fixed RTP/TCP client support

Originally committed as revision 2045 to svn://svn.ffmpeg.org/ffmpeg/trunk

445f1b83 07/12/2003 07:37 AM Roman Shaposhnik
  • First round of AV sync fixes. * -r now does the right thing. * frame rate and frame sizes now share same abbv. table and you
    can do -r ntsc as well as -s ntsc

Originally committed as revision 2035 to svn://svn.ffmpeg.org/ffmpeg/trunk

e71ea8b2 07/04/2003 11:08 PM Michael Niedermayer

mpeg1 bad frame_rate_base fix by (Arthur van Hoff (javanator))

Originally committed as revision 2012 to svn://svn.ffmpeg.org/ffmpeg/trunk

b530f842 05/05/2003 08:47 PM Michael Niedermayer

VOB stream patch ba (Brian Foley <bfoley at compsoc dot nuigalway dot ie>)

Originally committed as revision 1836 to svn://svn.ffmpeg.org/ffmpeg/trunk

a05c8d71 03/18/2003 05:22 PM Michael Niedermayer

merging a small amount of the changes from BroadQ, the rest is either not clean / doesnt apply / or is PS2 specific (someone with a PS2 should merge/send a patch for the later)

Originally committed as revision 1690 to svn://svn.ffmpeg.org/ffmpeg/trunk

14bea432 03/12/2003 03:16 PM Michael Niedermayer

per context frame_rate_base, this should finally fix frame_rate related av sync issues

Originally committed as revision 1666 to svn://svn.ffmpeg.org/ffmpeg/trunk

b559b29b 03/08/2003 10:57 AM Michael Niedermayer

read BITMAPINFOHEADER extra stuff (huffyuv decoding fixed)
fixed framerate encoding & decoding hopefully, this should fix av sync on long AVIs

Originally committed as revision 1646 to svn://svn.ffmpeg.org/ffmpeg/trunk

2ec23b6d 02/26/2003 05:26 PM Michael Niedermayer

move repeat_pict field from AVCodecContext -> AVFrame (closes bug #683536)

Originally committed as revision 1608 to svn://svn.ffmpeg.org/ffmpeg/trunk

0c1a9eda 02/11/2003 04:35 PM Zdenek Kabelac
  • UINTX -> uintx_t INTX -> intx_t

Originally committed as revision 1578 to svn://svn.ffmpeg.org/ffmpeg/trunk

5c91a675 02/10/2003 09:35 AM Zdenek Kabelac
  • static,const,compiler warning cleanup

Originally committed as revision 1567 to svn://svn.ffmpeg.org/ffmpeg/trunk

6fa5a56c 02/03/2003 10:58 PM Fabrice Bellard

zero copy packet handling for DV1394 by Max Krasnyansky

Originally committed as revision 1542 to svn://svn.ffmpeg.org/ffmpeg/trunk

98486a6b 01/23/2003 10:00 PM Roman Shaposhnik

zero sized malloc patch by Roman Shaposhnick

Originally committed as revision 1501 to svn://svn.ffmpeg.org/ffmpeg/trunk

7f172339 01/23/2003 10:33 AM Fabrice Bellard

grab device is in AVFormatParameter (at least better than global variable)

Originally committed as revision 1499 to svn://svn.ffmpeg.org/ffmpeg/trunk

86fd51fb 01/23/2003 09:55 AM Fabrice Bellard

video_device fixes

Originally committed as revision 1497 to svn://svn.ffmpeg.org/ffmpeg/trunk