platform/upstream/libav.git
15 years agoRename the 'put_zero' parameter of ff_put_string() to
Stefano Sabatini [Sat, 11 Apr 2009 15:54:21 +0000 (15:54 +0000)]
Rename the 'put_zero' parameter of ff_put_string() to
'terminate_string'.

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

15 years agoAdd documentation for skip_put_bytes().
Stefano Sabatini [Sat, 11 Apr 2009 14:49:46 +0000 (14:49 +0000)]
Add documentation for skip_put_bytes().

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

15 years agoDoxygenate ff_copy_bits().
Stefano Sabatini [Sat, 11 Apr 2009 14:47:35 +0000 (14:47 +0000)]
Doxygenate ff_copy_bits().

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

15 years agoFactorize declaration for the two variants of put_bits().
Stefano Sabatini [Sat, 11 Apr 2009 14:19:09 +0000 (14:19 +0000)]
Factorize declaration for the two variants of put_bits().

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

15 years agoTwo INIT_VLC_USE_STATIC cases Carl missed.
Michael Niedermayer [Sat, 11 Apr 2009 14:16:30 +0000 (14:16 +0000)]
Two INIT_VLC_USE_STATIC cases Carl missed.

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

15 years agoget rid of INIT_VLC_USE_STATIC in h261.
Michael Niedermayer [Sat, 11 Apr 2009 13:58:18 +0000 (13:58 +0000)]
get rid of INIT_VLC_USE_STATIC in h261.

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

15 years agoGet rid of INIT_VLC_USE_STATIC in rv10/rv20.
Michael Niedermayer [Sat, 11 Apr 2009 13:53:34 +0000 (13:53 +0000)]
Get rid of INIT_VLC_USE_STATIC in rv10/rv20.

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

15 years agoGet rid of INIT_VLC_USE_STATIC in 4xm.
Michael Niedermayer [Sat, 11 Apr 2009 13:43:09 +0000 (13:43 +0000)]
Get rid of INIT_VLC_USE_STATIC in 4xm.

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

15 years agoGet rid of INIT_VLC_USE_STATIC in asv1.
Michael Niedermayer [Sat, 11 Apr 2009 13:40:39 +0000 (13:40 +0000)]
Get rid of INIT_VLC_USE_STATIC in asv1.

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

15 years agoGet rid of INIT_VLC_USE_STATIC in msmpeg4
Michael Niedermayer [Sat, 11 Apr 2009 13:29:05 +0000 (13:29 +0000)]
Get rid of INIT_VLC_USE_STATIC in msmpeg4

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

15 years agoClarify documentation for put_bits_count().
Stefano Sabatini [Sat, 11 Apr 2009 13:04:33 +0000 (13:04 +0000)]
Clarify documentation for put_bits_count().

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

15 years agoGet rid of av_destruct_packet_nofree and use NULL instead.
Reimar Döffinger [Sat, 11 Apr 2009 12:42:29 +0000 (12:42 +0000)]
Get rid of av_destruct_packet_nofree and use NULL instead.
It is still used in comparisons to keep ABI compatibility.

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

15 years agoUse INIT_VLC_USE_STATIC and not its value "1".
Carl Eugen Hoyos [Sat, 11 Apr 2009 11:47:15 +0000 (11:47 +0000)]
Use INIT_VLC_USE_STATIC and not its value "1".

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

15 years agoReindent
Reimar Döffinger [Sat, 11 Apr 2009 10:41:06 +0000 (10:41 +0000)]
Reindent

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

15 years agoMake electronicarts demuxer return partial frames, this is the default
Reimar Döffinger [Sat, 11 Apr 2009 10:38:56 +0000 (10:38 +0000)]
Make electronicarts demuxer return partial frames, this is the default
behaviour of av_get_packet and should not be override without good reason.
As a side effect this fixes the memleak described in issue 956.
Also return the exact error code from av_get_packet instead of AVERROR(EIO).

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

15 years agoDocument align_put_bits().
Stefano Sabatini [Fri, 10 Apr 2009 22:29:56 +0000 (22:29 +0000)]
Document align_put_bits().

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

15 years agoDoxygenate flush_put_bits() documentation.
Stefano Sabatini [Fri, 10 Apr 2009 22:27:29 +0000 (22:27 +0000)]
Doxygenate flush_put_bits() documentation.

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

15 years agoDoxygenate put_bits_count() documentation.
Stefano Sabatini [Fri, 10 Apr 2009 22:14:45 +0000 (22:14 +0000)]
Doxygenate put_bits_count() documentation.

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

15 years agoFix comment: gcc 2.95.3 binaries decode ac3 fine if SSE is available and
Carl Eugen Hoyos [Fri, 10 Apr 2009 17:46:42 +0000 (17:46 +0000)]
Fix comment: gcc 2.95.3 binaries decode ac3 fine if SSE is available and
not disabled.

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

15 years agoDoxygenate init_put_bits().
Stefano Sabatini [Fri, 10 Apr 2009 17:30:42 +0000 (17:30 +0000)]
Doxygenate init_put_bits().

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

15 years agocosmetics: Rename prn variable to prng (Pseudo Random Number Generator).
Diego Biurrun [Fri, 10 Apr 2009 17:23:38 +0000 (17:23 +0000)]
cosmetics: Rename prn variable to prng (Pseudo Random Number Generator).

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

15 years agoAdd support to CorePNG P-frames.
Thilo Borgmann [Fri, 10 Apr 2009 17:16:19 +0000 (17:16 +0000)]
Add support to CorePNG P-frames.

Patch by Thilo Borgmann thilo DOT borgmann A googlemail com.

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

15 years agoReplace rand() usage by av_lfg_get().
Diego Biurrun [Fri, 10 Apr 2009 17:12:36 +0000 (17:12 +0000)]
Replace rand() usage by av_lfg_get().

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

15 years agocosmetics: Align output columns.
Diego Biurrun [Fri, 10 Apr 2009 15:16:11 +0000 (15:16 +0000)]
cosmetics: Align output columns.

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

15 years agoLoop up to MAX_THREADS instead of h->s.avctx->thread_count to free the thread
Reimar Döffinger [Fri, 10 Apr 2009 14:30:04 +0000 (14:30 +0000)]
Loop up to MAX_THREADS instead of h->s.avctx->thread_count to free the thread
contexts, this avoids a crash when freeing the H.264 parser context introduced in
r18406, since h->s.avctx is NULL there.

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

15 years agoUse the new avcodec_decode_* API.
Thilo Borgmann [Fri, 10 Apr 2009 12:53:22 +0000 (12:53 +0000)]
Use the new avcodec_decode_* API.

Patch by Thilo Borgmann th_lo.borgm_n_@goog_email.co_.

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

15 years agoremove useless duplication of what av_new_stream() already does
Aurelien Jacobs [Fri, 10 Apr 2009 12:49:53 +0000 (12:49 +0000)]
remove useless duplication of what av_new_stream() already does

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

15 years agoAdd 'PNG1' to PNG fourcc codes.
Thilo Borgmann [Fri, 10 Apr 2009 12:18:04 +0000 (12:18 +0000)]
Add 'PNG1' to PNG fourcc codes.

Patch by Thilo Borgmann thilo DOT borgmann _AT_ gXXglemail.cXm.

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

15 years agoUse the new avcodec_decode_* API.
Thilo Borgmann [Fri, 10 Apr 2009 12:07:06 +0000 (12:07 +0000)]
Use the new avcodec_decode_* API.

Patch by Thilo Borgmann thilo.borgmann * googlemail ! com.

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

15 years agoRemove unused variables along with the related warnings.
Diego Biurrun [Fri, 10 Apr 2009 11:33:14 +0000 (11:33 +0000)]
Remove unused variables along with the related warnings.

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

15 years agoAdd forgotten void return type to ff_h264_free_context
Reimar Döffinger [Fri, 10 Apr 2009 11:31:55 +0000 (11:31 +0000)]
Add forgotten void return type to ff_h264_free_context

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

15 years agoFix sigill on non-MMX2 CPUs.
Diego Biurrun [Fri, 10 Apr 2009 11:29:51 +0000 (11:29 +0000)]
Fix sigill on non-MMX2 CPUs.

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

15 years agoUse the new avcodec_decode_* API.
Thilo Borgmann [Fri, 10 Apr 2009 11:07:52 +0000 (11:07 +0000)]
Use the new avcodec_decode_* API.

Patch by Thilo Borgmann name.surname AT googlemail.com.

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

15 years agoMake try_decode_frame() use the new avcodec_decode_* API.
Thilo Borgmann [Fri, 10 Apr 2009 11:03:06 +0000 (11:03 +0000)]
Make try_decode_frame() use the new avcodec_decode_* API.

Patch by Thilo Borgmann thilo.borgmann AT g00glemail dot com.

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

15 years agoMake sure error resilience does not try to use unavailable reference frames.
Reimar Döffinger [Fri, 10 Apr 2009 07:17:30 +0000 (07:17 +0000)]
Make sure error resilience does not try to use unavailable reference frames.
Fixes the crash described in issue 706.

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

15 years agoAdd a ff_h264_free_context function and call it from the H.264 parser.
Reimar Döffinger [Fri, 10 Apr 2009 07:01:55 +0000 (07:01 +0000)]
Add a ff_h264_free_context function and call it from the H.264 parser.
This ensures that the parser will no longer leak memory for all SPS/PPS it encounters.

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

15 years agoMake sure mpeg2 has its height rounded up to 32 as that is needed
Michael Niedermayer [Fri, 10 Apr 2009 00:09:07 +0000 (00:09 +0000)]
Make sure mpeg2 has its height rounded up to 32 as that is needed
for interlaced stuff.
This might have been exploitable when emu edge was not set though
note this bug has been introduced just a few days ago.

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

15 years agoDo not use SSE2 SAD for snow as it requires more alignment than can be
Michael Niedermayer [Thu, 9 Apr 2009 21:53:48 +0000 (21:53 +0000)]
Do not use SSE2 SAD for snow as it requires more alignment than can be
easily provided.
Fixes issue315.

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

15 years agoFix documentation for the "-ps" option
Martin Storsjö [Thu, 9 Apr 2009 21:52:12 +0000 (21:52 +0000)]
Fix documentation for the "-ps" option
Patch by Martin Storsjö (martin AT martin DOT st)

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

15 years agoAAC packetiser cleanup: use consts instead of #defines
Luca Abeni [Thu, 9 Apr 2009 21:48:45 +0000 (21:48 +0000)]
AAC packetiser cleanup: use consts instead of #defines

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

15 years agoAAC packetiser cleanup: remove check for a condition that cannot happen
Luca Abeni [Thu, 9 Apr 2009 21:39:07 +0000 (21:39 +0000)]
AAC packetiser cleanup: remove check for a condition that cannot happen

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

15 years agoFix two checks in the AAC packetiser, which were too conservative
Martin Storsjö [Thu, 9 Apr 2009 21:37:11 +0000 (21:37 +0000)]
Fix two checks in the AAC packetiser, which were too conservative
Patch by Martin Storsjö (martin AT martin DOT st)

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

15 years agoMake sure the next used frame is released so get_buffer() wont fail.
Michael Niedermayer [Thu, 9 Apr 2009 21:19:25 +0000 (21:19 +0000)]
Make sure the next used frame is released so get_buffer() wont fail.

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

15 years agoMove release_buffer() up so it is prior to a future call to it.
Michael Niedermayer [Thu, 9 Apr 2009 21:17:53 +0000 (21:17 +0000)]
Move release_buffer() up so it is prior to a future call to it.

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

15 years agoFactorize release_buffer()
Michael Niedermayer [Thu, 9 Apr 2009 20:44:18 +0000 (20:44 +0000)]
Factorize release_buffer()

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

15 years agoMake sure spatial_decomposition_count is not too large for picture size.
Michael Niedermayer [Thu, 9 Apr 2009 20:23:13 +0000 (20:23 +0000)]
Make sure spatial_decomposition_count is not too large for picture size.
this led to an infinite loop in mirror().

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

15 years agoSkip non intra frames that have no reference frames.
Michael Niedermayer [Thu, 9 Apr 2009 20:13:35 +0000 (20:13 +0000)]
Skip non intra frames that have no reference frames.

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

15 years agoMake sure spatial_decomposition_count is >0.
Michael Niedermayer [Thu, 9 Apr 2009 19:45:10 +0000 (19:45 +0000)]
Make sure spatial_decomposition_count is >0.

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

15 years agoMake sure the block array is of the correct size.
Michael Niedermayer [Thu, 9 Apr 2009 18:47:50 +0000 (18:47 +0000)]
Make sure the block array is of the correct size.
This might have been exploitable.

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

15 years agoCheck spatial_decomposition_count too, fixes another crash.
Michael Niedermayer [Thu, 9 Apr 2009 18:37:26 +0000 (18:37 +0000)]
Check spatial_decomposition_count too, fixes another crash.

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

15 years ago10l, forgot to remove old code, which broke snow.
Michael Niedermayer [Thu, 9 Apr 2009 18:29:54 +0000 (18:29 +0000)]
10l, forgot to remove old code, which broke snow.

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

15 years agoFactorize check of read symbols.
Michael Niedermayer [Thu, 9 Apr 2009 18:21:51 +0000 (18:21 +0000)]
Factorize check of read symbols.

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

15 years agoFix spatial_decomposition_type validity check.
Michael Niedermayer [Thu, 9 Apr 2009 15:33:02 +0000 (15:33 +0000)]
Fix spatial_decomposition_type validity check.
Fixes infinite loop (did no investigate why exactly it got stuck).

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

15 years agoFix crash when max_ref_frames was out of range.
Michael Niedermayer [Thu, 9 Apr 2009 15:17:03 +0000 (15:17 +0000)]
Fix crash when max_ref_frames was out of range.
This might have been exploitable.
Fixes first crash of issue840.

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

15 years agoGive liblzo benchmark conditionals more descriptive names and add convenience
Diego Biurrun [Thu, 9 Apr 2009 15:11:48 +0000 (15:11 +0000)]
Give liblzo benchmark conditionals more descriptive names and add convenience
definitions along with instructions for changing them.

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

15 years agoAdd a configure check for lzo1x_999_compress() and compile the lzo test program
Diego Biurrun [Thu, 9 Apr 2009 14:55:05 +0000 (14:55 +0000)]
Add a configure check for lzo1x_999_compress() and compile the lzo test program
in libavutil when this function is available.

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

15 years agoFix memleak in nuv demuxer: free packet already allocated packet when
Reimar Döffinger [Thu, 9 Apr 2009 14:16:22 +0000 (14:16 +0000)]
Fix memleak in nuv demuxer: free packet already allocated packet when
returning an error in nuv_packet.

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

15 years agoRemove unnecessary gcc_fixes.h #include.
Diego Biurrun [Thu, 9 Apr 2009 11:54:13 +0000 (11:54 +0000)]
Remove unnecessary gcc_fixes.h #include.

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

15 years agocosmetics: Reformat comment paragraph and fix a few typos in it.
Diego Biurrun [Thu, 9 Apr 2009 10:06:54 +0000 (10:06 +0000)]
cosmetics: Reformat comment paragraph and fix a few typos in it.

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

15 years agoFix -ss / -t interaction with -acodec copy.
Michael Niedermayer [Thu, 9 Apr 2009 00:13:59 +0000 (00:13 +0000)]
Fix -ss / -t interaction with -acodec copy.
Fixes issue203

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

15 years agoFix mb_height for interlaced mpeg2.
Michael Niedermayer [Wed, 8 Apr 2009 20:48:44 +0000 (20:48 +0000)]
Fix mb_height for interlaced mpeg2.
This correctly fixes issue961, thanks to steven warren for spotting my mistake.

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

15 years agoconfigure: Add --enable-runtime-cpudetect
Ramiro Polla [Wed, 8 Apr 2009 20:26:18 +0000 (20:26 +0000)]
configure: Add --enable-runtime-cpudetect

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

15 years agoRename RUNTIME_CPUDETECT to CONFIG_RUNTIME_CPUDETECT and always define it.
Ramiro Polla [Wed, 8 Apr 2009 20:21:21 +0000 (20:21 +0000)]
Rename RUNTIME_CPUDETECT to CONFIG_RUNTIME_CPUDETECT and always define it.

Originally committed as revision 29154 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

15 years agoCorrectly set packet size for partial video packets in nuv demuxer.
Reimar Döffinger [Wed, 8 Apr 2009 20:20:42 +0000 (20:20 +0000)]
Correctly set packet size for partial video packets in nuv demuxer.

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

15 years agoAdd av_shrink_packet function for use in av_get_packet that reduces pkt->size
Reimar Döffinger [Wed, 8 Apr 2009 20:19:12 +0000 (20:19 +0000)]
Add av_shrink_packet function for use in av_get_packet that reduces pkt->size
and ensures the following padding is correctly initialized to 0.

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

15 years agoReduce code duplication.
Zhentan Feng [Wed, 8 Apr 2009 16:01:10 +0000 (16:01 +0000)]
Reduce code duplication.

Patch by Zhentan Feng, spyfeng gmail

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

15 years agoDocument addition of new avcodec_decode_video2/audio3/subtitle2() API and
Ronald S. Bultje [Wed, 8 Apr 2009 12:37:29 +0000 (12:37 +0000)]
Document addition of new avcodec_decode_video2/audio3/subtitle2() API and
the deprecation of the old API calls.

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

15 years agoAdd support for AMR audio in the RTP muxer
Martin Storsjö [Wed, 8 Apr 2009 07:16:14 +0000 (07:16 +0000)]
Add support for AMR audio in the RTP muxer
patch by Martin Storsjö (martin AT martin DOT st)

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

15 years agoforce sample for qcelp when not stored in mov, fix #968
Baptiste Coudurier [Wed, 8 Apr 2009 03:38:59 +0000 (03:38 +0000)]
force sample for qcelp when not stored in mov, fix #968

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

15 years agoReindent after r18372.
Ronald S. Bultje [Wed, 8 Apr 2009 03:06:08 +0000 (03:06 +0000)]
Reindent after r18372.

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

15 years agoAdd waveformat-extensible support in the wav muxer.
Ronald S. Bultje [Wed, 8 Apr 2009 03:04:57 +0000 (03:04 +0000)]
Add waveformat-extensible support in the wav muxer.

Patch (GSoC qualfication task) by Zhentan Feng spyfeng gmail com, see
"[FFmpeg-devel] Add waveformat extensible support in wav muxer (SoC
qualification task)" thread on mailinglist.

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

15 years agoClarify which time_base the relevant members of AVPacket use
Robert Swain [Wed, 8 Apr 2009 01:45:44 +0000 (01:45 +0000)]
Clarify which time_base the relevant members of AVPacket use

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

15 years agomove codec tag tables near corresponding code
Baptiste Coudurier [Tue, 7 Apr 2009 22:34:05 +0000 (22:34 +0000)]
move codec tag tables near corresponding code

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

15 years agocosmetics, reindent
Baptiste Coudurier [Tue, 7 Apr 2009 22:31:53 +0000 (22:31 +0000)]
cosmetics, reindent

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

15 years agocosmetics, add empty line and remove useless braces
Baptiste Coudurier [Tue, 7 Apr 2009 22:31:17 +0000 (22:31 +0000)]
cosmetics, add empty line and remove useless braces

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

15 years agofix compilation, add missing parenthesis
Baptiste Coudurier [Tue, 7 Apr 2009 22:28:39 +0000 (22:28 +0000)]
fix compilation, add missing parenthesis

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

15 years agocomment the ipod subtitle check
Baptiste Coudurier [Tue, 7 Apr 2009 22:26:47 +0000 (22:26 +0000)]
comment the ipod subtitle check

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

15 years agoinvert condition to simplify code
Baptiste Coudurier [Tue, 7 Apr 2009 22:25:11 +0000 (22:25 +0000)]
invert condition to simplify code

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

15 years agoremove no more needed code, tag is set by default
Baptiste Coudurier [Tue, 7 Apr 2009 22:23:15 +0000 (22:23 +0000)]
remove no more needed code, tag is set by default

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

15 years agocosmetics, reindent, add empty lines
Baptiste Coudurier [Tue, 7 Apr 2009 22:21:43 +0000 (22:21 +0000)]
cosmetics, reindent, add empty lines

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

15 years agosplit mov_find_codec_tag in separate per format functions
Baptiste Coudurier [Tue, 7 Apr 2009 22:19:58 +0000 (22:19 +0000)]
split mov_find_codec_tag in separate per format functions

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

15 years agoImprove grammar/comprehensibility of the lavu 50.2.0 entry.
Stefano Sabatini [Tue, 7 Apr 2009 21:59:16 +0000 (21:59 +0000)]
Improve grammar/comprehensibility of the lavu 50.2.0 entry.

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

15 years agoAlways return 0 if read_packet is successful.
Reimar Döffinger [Tue, 7 Apr 2009 21:25:02 +0000 (21:25 +0000)]
Always return 0 if read_packet is successful.

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

15 years agoDo not uselessly read version string into a buffer.
Reimar Döffinger [Tue, 7 Apr 2009 21:16:11 +0000 (21:16 +0000)]
Do not uselessly read version string into a buffer.

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

15 years agoDescribe read_alloc return value and required pkt handling to avoid memleaks
Reimar Döffinger [Tue, 7 Apr 2009 21:10:10 +0000 (21:10 +0000)]
Describe read_alloc return value and required pkt handling to avoid memleaks

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

15 years agoError out also when reading nuv header returns with partial data and return
Reimar Döffinger [Tue, 7 Apr 2009 20:52:37 +0000 (20:52 +0000)]
Error out also when reading nuv header returns with partial data and return
AVERROR(EIO) then.

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

15 years agoset bits_per_coded_sample for rawvideo
Baptiste Coudurier [Tue, 7 Apr 2009 20:47:56 +0000 (20:47 +0000)]
set bits_per_coded_sample for rawvideo

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

15 years agooverride mov fourcc for pcm audio, this is safer when stream copying
Baptiste Coudurier [Tue, 7 Apr 2009 20:37:30 +0000 (20:37 +0000)]
override mov fourcc for pcm audio, this is safer when stream copying

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

15 years agoFix second amr_nb_decode_frame() to also use the new AVPacket argument
Robert Swain [Tue, 7 Apr 2009 19:29:00 +0000 (19:29 +0000)]
Fix second amr_nb_decode_frame() to also use the new AVPacket argument

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

15 years agoMove av_packet_*() functions from libavformat/ to libavcodec/, where the
Thilo Borgmann [Tue, 7 Apr 2009 18:31:14 +0000 (18:31 +0000)]
Move av_packet_*() functions from libavformat/ to libavcodec/, where the
AVPacket structure now resides also.

Patch by Thilo Borgmann thilo.borgmann googlemail com, see the mailinglist
thread "Google Summer of Code participation" for additional discussion.

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

15 years agofix vp5/vp6 decoding by using new prototype for decode function
Aurelien Jacobs [Tue, 7 Apr 2009 18:24:47 +0000 (18:24 +0000)]
fix vp5/vp6 decoding by using new prototype for decode function

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

15 years agoImplement avcodec_decode_video2(), _audio3() and _subtitle2() which takes an
Thilo Borgmann [Tue, 7 Apr 2009 15:59:50 +0000 (15:59 +0000)]
Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes an
AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows
passing of packet-specific flags from demuxer to decoder, such as the keyframe
flag, which appears necessary to playback corePNG P-frames.

Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread
"Google Summer of Code participation" on the mailinglist.

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

15 years agoMove AVPacket up a bit, so that structs/functions that include AVPacket can
Thilo Borgmann [Tue, 7 Apr 2009 15:37:26 +0000 (15:37 +0000)]
Move AVPacket up a bit, so that structs/functions that include AVPacket can
themselves be reasonably positioned.

Patch by Thilo Borgmann thilo.borgmann googlemail com, see mailinglist thread
"[FFmpeg-devel] Google Summer of Code participation".

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

15 years agouse av_freep() instead of av_free() + =NULL.
Aurelien Jacobs [Tue, 7 Apr 2009 12:31:28 +0000 (12:31 +0000)]
use av_freep() instead of av_free() + =NULL.

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

15 years agoFix the copyright year
Luca Abeni [Tue, 7 Apr 2009 12:28:41 +0000 (12:28 +0000)]
Fix the copyright year

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

15 years agoAdd support for H.263 video in the RTP muxer
Martin Storsjö [Tue, 7 Apr 2009 06:41:55 +0000 (06:41 +0000)]
Add support for H.263 video in the RTP muxer
patch by Martin Storsjö (martin AT martin DOT st)

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

15 years agoDo not return payload type 34 for H.263 (it is deprecated)
Luca Abeni [Tue, 7 Apr 2009 06:37:12 +0000 (06:37 +0000)]
Do not return payload type 34 for H.263 (it is deprecated)

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

15 years agoMove scale factor computation to its own function. Patch by Kenan
Kenan Gillet [Tue, 7 Apr 2009 01:39:17 +0000 (01:39 +0000)]
Move scale factor computation to its own function. Patch by Kenan
Gillet.

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

15 years agoTry to honor even completely invalid motion vectors as far as is
Michael Niedermayer [Mon, 6 Apr 2009 21:45:02 +0000 (21:45 +0000)]
Try to honor even completely invalid motion vectors as far as is
easy.
Fixes issue961.

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

15 years agoOnly insert the SPS and PPS NALs in sprop-parameter-sets
Martin Storsjö [Mon, 6 Apr 2009 21:04:26 +0000 (21:04 +0000)]
Only insert the SPS and PPS NALs in sprop-parameter-sets
Patch by Martin Storsjö (martin AT martin DOT st)

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