platform/upstream/libav.git
16 years agomatroskadec: remove useless initialization
Aurelien Jacobs [Tue, 5 Aug 2008 00:41:13 +0000 (00:41 +0000)]
matroskadec: remove useless initialization

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

16 years agomatroskadec: cosmetics: remove useless braces
Aurelien Jacobs [Tue, 5 Aug 2008 00:41:10 +0000 (00:41 +0000)]
matroskadec: cosmetics: remove useless braces

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

16 years agomatroskadec: remove some unused ebml funcs
Aurelien Jacobs [Tue, 5 Aug 2008 00:41:07 +0000 (00:41 +0000)]
matroskadec: remove some unused ebml funcs

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

16 years agomatroskadec: use generic parser to parse clusters
Aurelien Jacobs [Tue, 5 Aug 2008 00:41:05 +0000 (00:41 +0000)]
matroskadec: use generic parser to parse clusters

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

16 years agomatroskadec: use generic parser inside matroska_execute_seekhead()
Aurelien Jacobs [Tue, 5 Aug 2008 00:41:01 +0000 (00:41 +0000)]
matroskadec: use generic parser inside matroska_execute_seekhead()

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

16 years agomatroskadec: use generic parser to parse matroska from toplevel
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:58 +0000 (00:40 +0000)]
matroskadec: use generic parser to parse matroska from toplevel

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

16 years agomatroskadec: move context settings to matroska_read_header()
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:55 +0000 (00:40 +0000)]
matroskadec: move context settings to matroska_read_header()

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

16 years agomatroskadec: cosmetics: indentation of matroska_read_header()
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:52 +0000 (00:40 +0000)]
matroskadec: cosmetics: indentation of matroska_read_header()

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

16 years agomatroskadec: move declaration to upper block
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:49 +0000 (00:40 +0000)]
matroskadec: move declaration to upper block

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

16 years agomatroskadec: invert a test
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:46 +0000 (00:40 +0000)]
matroskadec: invert a test

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

16 years agomatroskadec: cosmetics: indentation of matroska_execute_seekhead()
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:43 +0000 (00:40 +0000)]
matroskadec: cosmetics: indentation of matroska_execute_seekhead()

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

16 years agomatroskadec: remove useless dummy_level variable
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:40 +0000 (00:40 +0000)]
matroskadec: remove useless dummy_level variable

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

16 years agomatroskadec: use generic parser to parse seekhead
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:36 +0000 (00:40 +0000)]
matroskadec: use generic parser to parse seekhead

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

16 years agomatroskadec: declare var where it's used
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:33 +0000 (00:40 +0000)]
matroskadec: declare var where it's used

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

16 years agomatroskadec: use generic parser to parse tracks
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:31 +0000 (00:40 +0000)]
matroskadec: use generic parser to parse tracks

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

16 years agomatroskadec: use generic parser to parse info
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:27 +0000 (00:40 +0000)]
matroskadec: use generic parser to parse info

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

16 years agomatroskadec: use generic parser to parse attachments
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:24 +0000 (00:40 +0000)]
matroskadec: use generic parser to parse attachments

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

16 years agomatroskadec: use generic parser to parse chapters
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:21 +0000 (00:40 +0000)]
matroskadec: use generic parser to parse chapters

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

16 years agomatroskadec: use generic parser to parse tags
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:18 +0000 (00:40 +0000)]
matroskadec: use generic parser to parse tags

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

16 years agomatroskadec: use generic parser to parse index
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:15 +0000 (00:40 +0000)]
matroskadec: use generic parser to parse index

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

16 years agomatroskadec: return pointer instead of index in matroska_find_track_by_num()
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:12 +0000 (00:40 +0000)]
matroskadec: return pointer instead of index in matroska_find_track_by_num()

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

16 years agomatroskadec: create new AVStream earlier
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:09 +0000 (00:40 +0000)]
matroskadec: create new AVStream earlier

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

16 years agomatroskadec: store an AVStream pointer instead of a stream index
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:06 +0000 (00:40 +0000)]
matroskadec: store an AVStream pointer instead of a stream index

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

16 years agomatroskadec: use generic ebml parser to parse ebml header
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:02 +0000 (00:40 +0000)]
matroskadec: use generic ebml parser to parse ebml header

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

16 years agomatroskadec: add an ebml generic parser
Aurelien Jacobs [Tue, 5 Aug 2008 00:40:00 +0000 (00:40 +0000)]
matroskadec: add an ebml generic parser

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

16 years agomatroskadec: remove unused is_bframe flag
Aurelien Jacobs [Tue, 5 Aug 2008 00:39:55 +0000 (00:39 +0000)]
matroskadec: remove unused is_bframe flag

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

16 years agomatroskadec: simplify flag default
Aurelien Jacobs [Tue, 5 Aug 2008 00:39:53 +0000 (00:39 +0000)]
matroskadec: simplify flag default

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

16 years agomatroskadec: remove storage of various unused flags
Aurelien Jacobs [Tue, 5 Aug 2008 00:39:50 +0000 (00:39 +0000)]
matroskadec: remove storage of various unused flags

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

16 years agomatroskadec: use more robust av_strlcpy() instead of strcpy()
Aurelien Jacobs [Tue, 5 Aug 2008 00:39:47 +0000 (00:39 +0000)]
matroskadec: use more robust av_strlcpy() instead of strcpy()

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

16 years agoremove unneeded local variable
Justin Ruggles [Tue, 5 Aug 2008 00:32:27 +0000 (00:32 +0000)]
remove unneeded local variable

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

16 years agoPort b4/b8_stride code from spatial direct mode to temporal.
Michael Niedermayer [Tue, 5 Aug 2008 00:15:15 +0000 (00:15 +0000)]
Port b4/b8_stride code from spatial direct mode to temporal.
Fixes at least:
CAMANL3_Sand_E.264
camp_mot_picaff0_full.26l
CAPA1_TOSHIBA_B.264
CVPA1_TOSHIBA_B.264

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

16 years agoUse frame_num and reference instead of poc for matching frames for direct
Michael Niedermayer [Tue, 5 Aug 2008 00:08:32 +0000 (00:08 +0000)]
Use frame_num and reference instead of poc for matching frames for direct
mode MBs, this seems to work better with field/frame mixes. POC of both
can be the same and can be different that makes its use tricky.

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

16 years ago*2 /2 is wrong for PAFF references, so do not do it.
Michael Niedermayer [Mon, 4 Aug 2008 23:29:34 +0000 (23:29 +0000)]
*2 /2 is wrong for PAFF references, so do not do it.

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

16 years agoPort col_parity code from spatial mode to temporal mode,
Michael Niedermayer [Mon, 4 Aug 2008 23:06:45 +0000 (23:06 +0000)]
Port col_parity code from spatial mode to temporal mode,
I also love it if people duplicate code and fix one but not the other.

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

16 years agoThe code under FRAME_MBAFF for temporal direct mode MBs is needed for PAFF as well.
Michael Niedermayer [Mon, 4 Aug 2008 22:59:53 +0000 (22:59 +0000)]
The code under FRAME_MBAFF for temporal direct mode MBs is needed for PAFF as well.

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

16 years agoRemove redundant code.
Michael Niedermayer [Mon, 4 Aug 2008 22:52:54 +0000 (22:52 +0000)]
Remove redundant code.

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

16 years agoFill ref_count/ref_poc for both fields of frames.
Michael Niedermayer [Mon, 4 Aug 2008 22:32:41 +0000 (22:32 +0000)]
Fill ref_count/ref_poc for both fields of frames.

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

16 years agomisc spelling/wording fixes
Diego Biurrun [Mon, 4 Aug 2008 21:54:50 +0000 (21:54 +0000)]
misc spelling/wording fixes

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

16 years agoFix static leaks in h264.c.
Art Clarke [Mon, 4 Aug 2008 21:45:05 +0000 (21:45 +0000)]
Fix static leaks in h264.c.

Patch by Art Clarke aclarke A vlideshow D com

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

16 years agoUse ref_poc and ref_count from the correct field.
Michael Niedermayer [Mon, 4 Aug 2008 11:19:54 +0000 (11:19 +0000)]
Use ref_poc and ref_count from the correct field.
Fixes at least
MR8_BT_B.h264

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

16 years agoFix dist_scale_factor for long term reference pictures.
Michael Niedermayer [Mon, 4 Aug 2008 11:17:22 +0000 (11:17 +0000)]
Fix dist_scale_factor for long term reference pictures.

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

16 years agoReturn an error when ff_jpegls_decode_picture fails.
Mathieu Malaterre [Mon, 4 Aug 2008 08:25:38 +0000 (08:25 +0000)]
Return an error when ff_jpegls_decode_picture fails.
Patch by Mathieu Malaterre: name.surname at gmail

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

16 years agoSimplify PCM codec; replace switch() statements with av_get_bits_per_sample().
Peter Ross [Mon, 4 Aug 2008 07:49:50 +0000 (07:49 +0000)]
Simplify PCM codec; replace switch() statements with av_get_bits_per_sample().

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

16 years agoSimplify PCM codec; use sample_fmts field to set the avctx->sample_fmt field.
Peter Ross [Mon, 4 Aug 2008 07:47:23 +0000 (07:47 +0000)]
Simplify PCM codec; use sample_fmts field to set the avctx->sample_fmt field.

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

16 years agoMake avcodec_string() and av_get_bits_per_sample() report the sample size for CODEC_I...
Peter Ross [Mon, 4 Aug 2008 07:40:07 +0000 (07:40 +0000)]
Make avcodec_string() and av_get_bits_per_sample() report the sample size for CODEC_ID_PCM_ZORK

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

16 years agoAdd D-Cinema audio muxer
Peter Ross [Mon, 4 Aug 2008 07:35:07 +0000 (07:35 +0000)]
Add D-Cinema audio muxer

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

16 years agoImprove docs for the ffmpeg -map option.
Stefano Sabatini [Mon, 4 Aug 2008 07:02:48 +0000 (07:02 +0000)]
Improve docs for the ffmpeg -map option.

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

16 years agoUse the correct collocated field in pred_direct_motion() when it differs in parity.
Michael Niedermayer [Mon, 4 Aug 2008 02:41:19 +0000 (02:41 +0000)]
Use the correct collocated field in pred_direct_motion() when it differs in parity.
Fixes at least:
FRExt/HPCAFL_BRCM_C.264
FRExt/HPCAFLNL_BRCM_C.264
FRExt/HPCVFL_BRCM_A.264
FRExt/HPCVFLNL_BRCM_A.264

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

16 years agoRead bitstream parameters for E-AC-3 streams before returning an error.
Justin Ruggles [Sun, 3 Aug 2008 22:29:06 +0000 (22:29 +0000)]
Read bitstream parameters for E-AC-3 streams before returning an error.

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

16 years agoHardcode the table for ungrouping 3 values in 5 bits. It will be reused by
Justin Ruggles [Sun, 3 Aug 2008 21:42:43 +0000 (21:42 +0000)]
Hardcode the table for ungrouping 3 values in 5 bits. It will be reused by
the E-AC-3 decoder.

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

16 years agofix if/else case
Baptiste Coudurier [Sun, 3 Aug 2008 21:24:30 +0000 (21:24 +0000)]
fix if/else case

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

16 years agouse the same table for ungrouping exponents and bap=2 mantissas
Justin Ruggles [Sun, 3 Aug 2008 19:24:04 +0000 (19:24 +0000)]
use the same table for ungrouping exponents and bap=2 mantissas

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

16 years agofull lpcm support in mov audio stsd v2
Baptiste Coudurier [Sun, 3 Aug 2008 18:37:35 +0000 (18:37 +0000)]
full lpcm support in mov audio stsd v2

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

16 years agocosmetics: make all references to AC-3 capitalized and hyphenated
Justin Ruggles [Sun, 3 Aug 2008 16:42:32 +0000 (16:42 +0000)]
cosmetics: make all references to AC-3 capitalized and hyphenated

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

16 years agoremove a comment which is no longer true
Justin Ruggles [Sun, 3 Aug 2008 16:41:52 +0000 (16:41 +0000)]
remove a comment which is no longer true

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

16 years agoReplace call to deprecated avcodec_build() with avcodec_version().
Diego Biurrun [Sun, 3 Aug 2008 14:37:19 +0000 (14:37 +0000)]
Replace call to deprecated avcodec_build() with avcodec_version().

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

16 years agoIncrease the maximum number of supported stream mappings in ffmpeg.c.
Stefano Sabatini [Sun, 3 Aug 2008 13:38:31 +0000 (13:38 +0000)]
Increase the maximum number of supported stream mappings in ffmpeg.c.
The new value is given by maximum_files_nb * maximum_streams_per_file_nb,
which looks also more correct in respect to the previous value.

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

16 years agoRemove useless mb_field_decoding_flag setting code that was at the wrong spot.
Michael Niedermayer [Sun, 3 Aug 2008 13:11:14 +0000 (13:11 +0000)]
Remove useless mb_field_decoding_flag setting code that was at the wrong spot.

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

16 years agomb_field_decoding_flag was not initialized
Michael Niedermayer [Sun, 3 Aug 2008 13:00:39 +0000 (13:00 +0000)]
mb_field_decoding_flag was not initialized
Fixes at least:
MR7_BT_B.h264
Sharp_MP_PAFF_1r2.jvt
Sharp_MP_PAFF_2.jvt

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

16 years agoWrong constant used in default threshold value calculation for
Mathieu Malaterre [Sun, 3 Aug 2008 05:07:48 +0000 (05:07 +0000)]
Wrong constant used in default threshold value calculation for
JPEG-LS lossy mode with < 128 colours.

Patch by Mathieu Malaterre (mail = gmailify("mathieu.malaterre"))

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

16 years agocosmetics: vertical alignment
Justin Ruggles [Sun, 3 Aug 2008 02:16:51 +0000 (02:16 +0000)]
cosmetics: vertical alignment

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

16 years agouse MAX_BLOCKS for array size instead of 6
Justin Ruggles [Sun, 3 Aug 2008 02:16:21 +0000 (02:16 +0000)]
use MAX_BLOCKS for array size instead of 6

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

16 years agorearrange dimensions of pre_mantissa array
Justin Ruggles [Sun, 3 Aug 2008 02:11:46 +0000 (02:11 +0000)]
rearrange dimensions of pre_mantissa array

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

16 years agoAdd graceful error handling to avcodec_get_pix_fmt_name() and avcodec_get_pix_fmt().
Peter Ross [Sun, 3 Aug 2008 00:41:31 +0000 (00:41 +0000)]
Add graceful error handling to avcodec_get_pix_fmt_name() and avcodec_get_pix_fmt().

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

16 years agoAdd sample format converter to FFmpeg (adds -sample_fmt option)
Peter Ross [Sun, 3 Aug 2008 00:37:07 +0000 (00:37 +0000)]
Add sample format converter to FFmpeg (adds -sample_fmt option)

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

16 years agoPicture.ref_count/ref_poc have to be stored per field (actually also per
Michael Niedermayer [Sat, 2 Aug 2008 23:13:27 +0000 (23:13 +0000)]
Picture.ref_count/ref_poc have to be stored per field (actually also per
slice but thats a seperate bug)
Fixes at least:
CABREF3_Sand_D.264
camp_mot_fld0_full.26l
CVFI2_Sony_H.jsv
CVNLFI2_Sony_H.jsv

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

16 years agodo not fail on qscale==0 if error resilience is high, fix broken quicktime h261,...
Baptiste Coudurier [Sat, 2 Aug 2008 22:51:49 +0000 (22:51 +0000)]
do not fail on qscale==0 if error resilience is high, fix broken quicktime h261, lotr.mov

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

16 years agoMark add_png_paeth_prediction_* functions which are only used within this file
Uoti Urpala [Sat, 2 Aug 2008 17:32:55 +0000 (17:32 +0000)]
Mark add_png_paeth_prediction_* functions which are only used within this file
as static. patch by Uoti Urpala, uoti.urpala pp1.inet fi

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

16 years agoAdd sample format converter to FFplay.
Peter Ross [Sat, 2 Aug 2008 05:01:30 +0000 (05:01 +0000)]
Add sample format converter to FFplay.

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

16 years agosupport big endian lpcm with audio stsd v2
Baptiste Coudurier [Sat, 2 Aug 2008 03:45:23 +0000 (03:45 +0000)]
support big endian lpcm with audio stsd v2

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

16 years agokeep original codec/fourcc endianness, fix XDCAMHD.mov
Baptiste Coudurier [Sat, 2 Aug 2008 03:43:36 +0000 (03:43 +0000)]
keep original codec/fourcc endianness, fix XDCAMHD.mov

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

16 years agomore complete audio stsd v2
Baptiste Coudurier [Sat, 2 Aug 2008 03:40:13 +0000 (03:40 +0000)]
more complete audio stsd v2

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

16 years agomove version specific parsing code before codec specific code, will be needed
Baptiste Coudurier [Sat, 2 Aug 2008 03:35:43 +0000 (03:35 +0000)]
move version specific parsing code before codec specific code, will be needed

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

16 years agoSimplify AVCodecContext usage within FFplay audio_decode_frame()
Peter Ross [Sat, 2 Aug 2008 01:26:38 +0000 (01:26 +0000)]
Simplify AVCodecContext usage within FFplay audio_decode_frame()

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

16 years agoI found a maintainer for all parts that had none listed :)
Michael Niedermayer [Fri, 1 Aug 2008 23:27:10 +0000 (23:27 +0000)]
I found a maintainer for all parts that had none listed :)

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

16 years agoRecommit r14497
Michael Niedermayer [Fri, 1 Aug 2008 23:12:10 +0000 (23:12 +0000)]
Recommit r14497
Log:
Add missing header #includes.
Limited to ffm.h & swf.h which are maintained by baptiste who requested that
version to be kept.

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

16 years agoRevert r14497
Michael Niedermayer [Fri, 1 Aug 2008 22:29:29 +0000 (22:29 +0000)]
Revert r14497
Log:
Add missing header #includes.
Policy violation (change not approved by maintainer)
and while discussions where ongoing and no consensus has been reached.

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

16 years agoExplain the difference between HAVE_LIST and CONFIG_LIST in a short comment.
Diego Biurrun [Fri, 1 Aug 2008 20:30:21 +0000 (20:30 +0000)]
Explain the difference between HAVE_LIST and CONFIG_LIST in a short comment.

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

16 years agoOnly check for socklen_t if network support is enabled.
Diego Biurrun [Fri, 1 Aug 2008 18:27:59 +0000 (18:27 +0000)]
Only check for socklen_t if network support is enabled.

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

16 years agoAdd missing header #includes.
Diego Biurrun [Fri, 1 Aug 2008 16:29:26 +0000 (16:29 +0000)]
Add missing header #includes.

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

16 years agoModify av_audio_convert() to use AVAudioConvert context struct; add av_audio_convert_...
Peter Ross [Fri, 1 Aug 2008 13:53:18 +0000 (13:53 +0000)]
Modify av_audio_convert() to use AVAudioConvert context struct; add av_audio_convert_alloc() and av_audio_convert_free() support functions.

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

16 years agoRevert r14484 hunk that deleted the 'include avcodec.h' statement.
Peter Ross [Fri, 1 Aug 2008 11:26:22 +0000 (11:26 +0000)]
Revert r14484 hunk that deleted the 'include avcodec.h' statement.

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

16 years agoUse compression level to set mp3lame quality option.
Nicolas George [Fri, 1 Aug 2008 07:23:29 +0000 (07:23 +0000)]
Use compression level to set mp3lame quality option.
Patch by Nicolas George nicolas george normalesup org
Original thread:
[PATCH] libmp3lame: set noise shaping & psychoacoustic algorithms quality
Date: 07/31/2008 03:53 PM

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

16 years agofix mpeg 4:2:2 vis_qp and vis_mb_type debug, fix issue #471
Baptiste Coudurier [Thu, 31 Jul 2008 19:51:19 +0000 (19:51 +0000)]
fix mpeg 4:2:2 vis_qp and vis_mb_type debug, fix issue #471

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

16 years agodowngrade mov negative ctts log message to warning, patch by Art Clarke, aclarke...
Art Clarke [Thu, 31 Jul 2008 19:44:42 +0000 (19:44 +0000)]
downgrade mov negative ctts log message to warning, patch by Art Clarke, aclarke at vlideshow dot com

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

16 years agoOnly reset buffer state if seeking is successful; update seek reg ref.
Baptiste Coudurier [Thu, 31 Jul 2008 19:40:06 +0000 (19:40 +0000)]
Only reset buffer state if seeking is successful; update seek reg ref.

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

16 years agocheck url_fseek return value
Baptiste Coudurier [Thu, 31 Jul 2008 18:12:37 +0000 (18:12 +0000)]
check url_fseek return value

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

16 years agocheck url_fseek return value, update seek reg tests
Baptiste Coudurier [Thu, 31 Jul 2008 18:02:55 +0000 (18:02 +0000)]
check url_fseek return value, update seek reg tests

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

16 years agocheck url_fseek return value, update seek reg tests
Baptiste Coudurier [Thu, 31 Jul 2008 18:01:12 +0000 (18:01 +0000)]
check url_fseek return value, update seek reg tests

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

16 years agoFix a potential out of array writing.
Mathieu Malaterre [Thu, 31 Jul 2008 14:53:14 +0000 (14:53 +0000)]
Fix a potential out of array writing.
Patch by Mathieu Malaterre mathieu malaterre gmail com

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

16 years agoAdd opt handler for pending "-sample_fmt" option
Peter Ross [Thu, 31 Jul 2008 13:11:07 +0000 (13:11 +0000)]
Add opt handler for pending "-sample_fmt" option

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

16 years agoWrite sample format description within avcodec_string()
Peter Ross [Thu, 31 Jul 2008 12:56:56 +0000 (12:56 +0000)]
Write sample format description within avcodec_string()

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

16 years agoAdd sample format support functions: avcodec_get_sample_fmt_name(), avcodec_get_sampl...
Peter Ross [Thu, 31 Jul 2008 12:55:06 +0000 (12:55 +0000)]
Add sample format support functions: avcodec_get_sample_fmt_name(), avcodec_get_sample_fmt(), avcodec_sample_fmt_string()

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

16 years agoUse static vlc structure to decode layer 3 huffman tables.
Art Clarke [Thu, 31 Jul 2008 12:09:11 +0000 (12:09 +0000)]
Use static vlc structure to decode layer 3 huffman tables.
Patch by Art Clarke aclarke vlideshow com

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

16 years agoModify all codecs to report their supported input and output sample format(s).
Peter Ross [Thu, 31 Jul 2008 10:47:31 +0000 (10:47 +0000)]
Modify all codecs to report their supported input and output sample format(s).

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

16 years agofix ARMv6 FASTDIV for divisor <=2
Måns Rullgård [Thu, 31 Jul 2008 02:38:40 +0000 (02:38 +0000)]
fix ARMv6 FASTDIV for divisor <=2

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

16 years agoskip flv video info / command frame packets, fix issue #546
Baptiste Coudurier [Thu, 31 Jul 2008 02:26:40 +0000 (02:26 +0000)]
skip flv video info / command frame packets, fix issue #546

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

16 years ago1000l typo my new PRNG converged to -1.
Michael Niedermayer [Wed, 30 Jul 2008 23:17:41 +0000 (23:17 +0000)]
1000l typo my new PRNG converged to -1.

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

16 years agoAdd a multiplicative LFG for those thinking the additive is not good
Michael Niedermayer [Wed, 30 Jul 2008 23:08:07 +0000 (23:08 +0000)]
Add a multiplicative LFG for those thinking the additive is not good
enough, just 4 lines of code.

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

16 years agochange assert test due to the new reducing of time_base in av_set_pts_info, fix #561
Baptiste Coudurier [Wed, 30 Jul 2008 21:07:54 +0000 (21:07 +0000)]
change assert test due to the new reducing of time_base in av_set_pts_info, fix #561

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