Statistics
| Branch: | Revision:

ffmpeg / libavformat / utils.c @ 72415b2a

History | View | Annotate | Download (111 KB)

# Date Author Comment
72415b2a 03/30/2010 11:30 PM Stefano Sabatini

Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.

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

532aa889 03/26/2010 01:12 AM Micah F. Galizia

Fix updating condition for the probe_size variable in the internal
loop of ff_probe_input_buffer(), making sure that probe_size is always
set to probe_max_size in the last iteration.

Also make the function return an error if we get to the max probe
length and still cannot figure out what the format is....

d8f92957 03/25/2010 07:14 AM Martin Storsjö

Reindent

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

ddbeb954 03/25/2010 07:13 AM Martin Storsjö

Add a lowercase parameter to ff_data_to_hex

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

2928b83c 03/21/2010 04:34 PM Stefano Sabatini

Make av_open_input_file() return AVERROR_INVALIDDATA rather than
AVERROR_NOFMT if the format is unknown / cannot be recognized.

It is returned AVERROR_INVALIDDATA, in the sense that the data is
invalid within what the specific libav* binary supports.

That was the last remaining use of AVERROR_NOFMT, which is going to be...

c7f625ee 03/16/2010 09:45 PM Måns Rullgård

Fix erroneous behaviour when format probe hits end of file

If the format probe hits end of file, do not add the error code
to the buffer position. This is obviously wrong, and with a
small input file would cause a negative buffer overflow.

Fixes issue 1818....

972ffe62 03/15/2010 11:15 PM Aurelien Jacobs

rename av_read_frame_flush to ff_read_frame_flush
it is an internal function, not part of public API

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

588af13f 03/15/2010 11:14 PM Aurelien Jacobs

rename av_program_add_stream_index to ff_program_add_stream_index
it is an internal function, not part of public API

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

2dad0dce 03/15/2010 10:36 AM Martin Storsjö

Move the NTP offset definitions to internal.h

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

eadd495d 03/14/2010 10:40 PM Micah F. Galizia

Move the probe loop from av_open_input_file() into its own method
av_probe_input_buffer() so that it can be reused. Here are a few
differences to the original way things were probed:

- maximum probe buffer size can be specified as a parameter.

- offset within the stream to probe from can be specified as a parameter....

594a9aeb 03/10/2010 10:21 PM Martin Storsjö

Make the ntp_time function available to other parts of libavformat, as ff_ntp_time

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

67c10de7 03/09/2010 03:19 PM Michael Niedermayer

Add special case to avoid binary search when appending index entries.

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

f4495cdc 03/08/2010 11:51 PM Stefano Sabatini

Remove definition of match_ext(), which is declared under #ifdef
HAVE_AV_CONFIG_H and so not publicly declared, and currently unused.

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

f984dcf6 03/08/2010 09:05 AM Martin Storsjö

Reindent

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

c5c6e67c 03/08/2010 09:03 AM Martin Storsjö

Rename url_split to ff_url_split

Since this function isn't in the public API, it should have an ff_ prefix.

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

f19341e1 03/08/2010 03:46 AM Måns Rullgård

Revert "Move the probe loop from av_open_input_file() into its own method"

This reverts r22296. This change made some files to fail to open.
The patch submitter has promised to investigate next week.

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

e7e291e9 03/08/2010 12:00 AM Alex Converse

av_find_stream_info(): Add a workaround for backwards compatible HE-AAC signaling.

The sample rate, frame size, and channel count from the container are
not reliable when backwards compatible signaling is used.

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

663322c1 03/07/2010 11:10 PM Daniel Kristjansson

Fix pts->dts conversion init for non-zero initial value for pts.

Patch by Daniel Kristjansson, danielk cuymedia net

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

4245c6ec 03/07/2010 10:42 PM Micah F. Galizia

Move the probe loop from av_open_input_file() into its own method
av_probe_input_buffer() so that it can be reused. Here are a few
differences to the original way things were probed:

- maximum probe buffer size can be specified as a parameter.

- offset within the stream to probe from can be specified as a parameter....

c26e58e3 03/06/2010 10:36 PM Måns Rullgård

Add some missing #includes

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

780d7897 03/05/2010 10:31 PM Martin Storsjö

Add a function ff_url_join for assembling URLs

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

5301a05d 03/05/2010 05:26 PM Vitor Sessak

Fix memory leak in NUT muxer

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

82f50f82 02/28/2010 06:37 PM Anton Khirnov

Print chapter info in dump_format().

Patch by Anton Khirnov, wyskas gmail

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

ab392695 02/23/2010 04:29 PM Michael Niedermayer

Count all frames with codec_info_nb_frames not just ones with non zero
duration. I hope this breaks nothing. Its needed for my fix of issue1156

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

6c6e6ef5 02/23/2010 03:07 PM Michael Niedermayer

Put codec_info_nb_frames back in AVStream and print its value.
This way streams with no or very few frames can be avoided during
auto selection

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

b7884740 02/22/2010 10:05 PM Michael Niedermayer

Make sure mp1/mp2 get their frame_size set.
Fixes issue1696

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

0e5f33f2 02/22/2010 10:19 AM Michael Niedermayer

Make sure a set r_frame_rate is not overriden by a guess.
Also make sure we dont waste time in this case with collecting timestamps.

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

ed7694d8 02/16/2010 04:32 PM Anton Khirnov

Set lavf identification string globally in av_write_header(), rather
than inside the muxers. Remove special handling of "encoder" tags from
AVI and MP3 muxers.

Patch by Anton Khirnov <wyskas gmail com>.

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

ab5a0175 02/12/2010 08:35 PM Michael Niedermayer

Add flag so muxers not needing width/height can signal this.
Add this flag to img2 (fixes -vcodec copy to image2 in some cases)

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

e6406939 02/07/2010 07:10 PM Michael Niedermayer

Directly use av_rescale_rnd() instead of av_convert_ts() as this cuts the
number of calls to it down by 2.

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

e5026c36 02/07/2010 04:27 PM Michael Niedermayer

Use av_compare_ts() for interleaving per dts.

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

8c3b161e 02/03/2010 11:59 PM Michael Niedermayer

Dont try generic seek if seek request before first index entry and backward.
Fixes issue1275

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

43e4d57f 02/03/2010 11:05 PM Michael Niedermayer

Try to open decoders in av_find_stream_info() even if no packets for the
stream are found.
Fixes issue1385

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

411ff322 01/31/2010 05:43 PM Michael Niedermayer

Increase search range if no end timestamp could be found for the duration
calculation.

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

c55806e3 01/30/2010 10:55 PM Michael Niedermayer

Flag to ignore dts on frames that contain pts.
This works around common issues with mpeg-ps files with broken timestamps.
Also allows playing the broken sample from issue1024.

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

d30a8beb 01/27/2010 07:37 PM Michael Niedermayer

Fix duration calculation in the presence of a single wraping of the timeline.
Fixes issue1714.

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

c3aeaa54 01/18/2010 11:56 PM Baptiste Coudurier

set average frame rate in mov demuxer

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

094a63f1 01/13/2010 02:32 PM Tomas Härdin

Check there is a stream before writing header.
Patch by Tomas Härdin: $(name) punto hardin chez codemill dot se

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

41600690 01/03/2010 02:31 PM Stefano Sabatini

Prefer "*FUNC_NAME(" over "* FUNC_NAME(" for XXX_configuration() and
XXX_license() functions, consistent with the rest of FFmpeg.

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

aa13b573 01/01/2010 11:56 PM Stefano Sabatini

Use av_match_ext() in place of the deprecated match_ext() function.

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

8eb631fa 01/01/2010 11:50 PM Stefano Sabatini

Deprecate match_ext() in favor of av_match_ext(), and mark it for
deletion at the next major bump.

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

0f52ef1a 01/01/2010 12:58 PM Stefano Sabatini

Use av_guess_format() in place of the deprecated guess_format().

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

a1f547b9 01/01/2010 12:46 PM Stefano Sabatini

Deprecate guess_format() in favor of av_guess_format().

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

1642ee43 12/31/2009 02:12 PM Stefano Sabatini

Deprecate and mark for deletion the function guess_stream_format(),
and clone its code to ffserver_guess_format() in ffserver.c.

guess_stream_format() is hackish since it relies on some undocumented
properties of the name of the muxers (wich is currently only relevant...

02483df4 12/13/2009 11:39 PM Michael Niedermayer

Make sure the Metadata: header is not printed if the only metadata will not
be displayed. (idea from ffmbc)

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

b298daea 12/13/2009 11:34 PM Michael Niedermayer

Move dump_metadata() to where it is in ffmbc, looks better.

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

229303d1 12/13/2009 11:31 PM Michael Niedermayer

indent

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

4d9b6784 12/13/2009 11:30 PM Michael Niedermayer

Skip dumping language twice.
This looks too ugly. Idea also from ffmbc.

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

2e720e11 12/13/2009 11:27 PM Michael Niedermayer

dump metadata for AVStreams & AVPrograms too.

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

8b5e5ec5 12/13/2009 11:19 PM Michael Niedermayer

Factorize dump_metadata() out.
Idea from ffmbc, code not, mine is a fraction of the size due to simpler
metadata API.

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

cc20679a 12/13/2009 10:56 PM Michael Niedermayer

Try to simplify av_estimate_timings_from_pts() like in ffmbc.
Note if this breaks for some file, report it please!

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

0e500e0d 12/13/2009 10:15 PM Michael Niedermayer

Debug av_log() about stream probing from ffmbc.

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

02b398ef 12/13/2009 03:52 PM Michael Niedermayer

Add avg_frame_rate.

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

51ce8c2f 12/13/2009 03:01 PM Michael Niedermayer

Remove commented out code.

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

106fa129 12/12/2009 03:26 PM John Stebbins

Reset pts_buffers in av_read_frame_flush().

Patch by John Stebbins, jstebbins jetheaddev com

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

b593f7fd 12/06/2009 12:03 AM Sean Soria

Calls to url_fseek should have their return value checked in
av_seek_frame_binary, just as they do in av_seek_frame_generic.
Otherwise, function may return success even though url_fseek reported
failure.

Patch by Sean Soria, first.last at gmail

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

6659b32a 12/01/2009 10:56 PM Sean Soria

Change ret type to int64_t because url_fseek returns int64_t.
This fixes seeking in files > 2gb.
Patch by Sean Soria, sean dot soria at gmail dot com.

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

66765b59 12/01/2009 08:15 PM Baptiste Coudurier

use AVFormatContext in av_log, better than AVCodecContext when multiple streams are present

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

77ac76a3 11/30/2009 10:08 PM Michael Niedermayer

Print a warning if the duration is estimated from the bitrate, as this is
likely not accurate.

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

c1736936 11/18/2009 05:15 PM Diego Biurrun

Add functions to return library license and library configuration.

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

ca02d8ec 11/11/2009 09:57 PM Diego Biurrun

Add '#undef fprintf' before PRINT macro that uses fprintf.
Otherwise there may be trouble when fprintf is disabled in favor of av_log.

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

050ba6f4 10/30/2009 06:17 PM Baptiste Coudurier

print packet duration when debugging timestamps

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

72017ea1 10/19/2009 06:55 PM Baptiste Coudurier

check stream index validity in av_program_add_stream_index

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

8425ceca 10/19/2009 06:53 PM Baptiste Coudurier

request mp3 frame_size to be set in has_codec_parameters, fix issue #1314

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

f2c061ec 10/19/2009 02:20 AM Baptiste Coudurier

reindent after commit

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

7edbcfb7 10/19/2009 02:12 AM Baptiste Coudurier

In dump_format, print streams not associated with any program.
Fixes issue #1366.

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

7857d3cc 10/18/2009 08:25 PM Baptiste Coudurier

fix indentation and add braces

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

a4cb6751 10/17/2009 08:37 PM Vitor Sessak

Avoid segfault for empty input files

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

b8c0db99 10/11/2009 11:56 AM Carl Eugen Hoyos

Allow autodetection of E-AC3.

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

e18027ac 10/03/2009 07:40 PM Carl Eugen Hoyos

Add FIXME about low_delay vs has_b_frames.

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

f4a4be3f 10/03/2009 07:30 PM Wallak

H264 allows B frames without requiring a >=1 sized buffer.

Patch by wallak, wallak free fr

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

e9b06816 09/18/2009 01:19 PM Michael Niedermayer

Only use *ic_ptr when it has been initialized.

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

db46c4e1 09/17/2009 06:46 PM Baptiste Coudurier

print at debug level the score at which codec probing succedeed

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

1bc8c361 09/16/2009 08:44 PM Michael Niedermayer

Print a warning if a format has been detected with a low score.

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

c36823fd 09/16/2009 08:23 PM Michael Niedermayer

Print at debug level the score with which probing succeeded.

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

8a6c7a52 09/16/2009 08:06 PM Michael Niedermayer

Fix indention after last commit.

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

e07b882b 09/16/2009 08:04 PM Michael Niedermayer

Improve amortized worst case speed of the muxers packet interleaving code
from O(packets_in_the_file) to O(num_of_streams).

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

657eca1f 09/16/2009 01:47 AM Michael Niedermayer

Upgrade a few important messages to AV_LOG_WARNING.

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

03555376 09/16/2009 01:17 AM Michael Niedermayer

Fix indention after previous commit.

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

ddce56ef 09/16/2009 12:59 AM Michael Niedermayer

Make packet interleaving in the muxer not scan through the whole
buffer when simply appending at the end works.
Much faster if one stream ends prematurely.
Fixes issue1379.

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

42831b46 09/16/2009 12:56 AM Michael Niedermayer

Also reset *_end in flush_packet_queue().

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

1d07029f 09/04/2009 09:38 PM Justin Ruggles

Add frame_size as a codec parameter requirement for Speex in
av_find_stream_info(). It forces decoding of a packet when there is no
Speex header in order to determine the correct frame size.

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

101036ad 08/22/2009 04:05 PM Ivan Schreter

Support for generic multi-stream key frame finding for new seek API.

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

c0b88f19 08/12/2009 01:17 PM Peter Ross

Moves the display of metadata to dump_format()

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

ebb82604 07/15/2009 10:00 AM Art Clarke

Only free '*ic_ptr' when a caller has pre-allocated a context and passed it in
(wherein av_open_input_file assumes memory ownership).
Patch by Art Clarke a<surname> xuggle com

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

56c6cf28 07/08/2009 08:26 AM Art Clarke

Fix mem leak when user preallocates an AVFormatContext, passes it to
av_open_input_file(), but the file does not exist.
Patch by Art Clarke a$(surname) xuggle com

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

e7e5d1e9 07/02/2009 12:47 PM Michael Niedermayer

If either of num or den is 0 make both 0 in av_set_pts_info().

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

d218a86a 07/01/2009 08:52 PM Michael Niedermayer

Make sure av_set_pts_info() does not set the fields of a timebase to
negative values.

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

dec14949 07/01/2009 06:50 PM Michael Niedermayer

Make arguments of av_set_pts_info() unsigned.
Fixes issue1240/mpeg1/smclockmpeg1.avi.3.1

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

57011a13 06/25/2009 07:10 PM Baptiste Coudurier

use AVFormatContext->probesize in av_find_stream_info and raise default to 5M

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

af122d6a 06/25/2009 06:48 PM Baptiste Coudurier

limit raw packet buffer size used for codec probing

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

1a40491e 06/22/2009 11:09 PM Daniel Verkamp

Add ff_ prefixes to exported symbols in libavformat/riff.h.
patch by Daniel Verkamp, aniel drv nu

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

71ee6515 06/18/2009 12:22 AM Michael Niedermayer

Print why av_find_stream_info() failed, this is a rather common question
during debugging ...

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

818062f2 06/11/2009 04:30 AM Baptiste Coudurier

if b frames are parsed, set codec->has_b_frames

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

e695906e 05/31/2009 04:13 AM Baptiste Coudurier

use dts codec probing

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

86cb7e33 05/31/2009 12:24 AM Baptiste Coudurier

fix codec probing, stop after MAX_PROBE_PACKETS and return all packets

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

db5dc02b 05/30/2009 04:08 AM Baptiste Coudurier

cast size to int64_t to avoid overflow

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

1bd280f7 04/13/2009 03:38 AM Baptiste Coudurier

Set frame defaults in try_decode_frame.
Fix:
22211 Conditional jump or move depends on uninitialised value(s)
22211 at 0x811E692: ff_print_debug_info (mpegvideo.c:1137)
22211 by 0x82E6A7B: decode_frame (h264.c:7897)
22211 by 0x80F2823: avcodec_decode_video2 (utils.c:564)...

e472ea34 04/13/2009 03:32 AM Baptiste Coudurier

reindent

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

d2e63e8b 04/11/2009 10:38 PM Reimar Döffinger

Simplify packet duplication code in ff_interleave_add_packet.
Behaviour only changes if pkt->destuct neither av_destruct_packet,
av_destruct_packet_nofree nor NULL, in which case the new code avoids a double free.

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