]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/log
frescor/ffmpeg.git
15 years agoARM: disable inline asm for armcc
mru [Thu, 5 Mar 2009 21:20:13 +0000 (21:20 +0000)]
ARM: disable inline asm for armcc

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17831 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoARM: armcc versions of bswap_16/32
mru [Thu, 5 Mar 2009 21:20:10 +0000 (21:20 +0000)]
ARM: armcc versions of bswap_16/32

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17830 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoARM: detect armcc compiler and enable gcc mode
mru [Thu, 5 Mar 2009 21:20:08 +0000 (21:20 +0000)]
ARM: detect armcc compiler and enable gcc mode

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17829 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoconfigure: check asm support using $as
mru [Thu, 5 Mar 2009 21:20:04 +0000 (21:20 +0000)]
configure: check asm support using $as

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17828 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoCompile .S files with $(AS), set it in configure
mru [Thu, 5 Mar 2009 21:20:01 +0000 (21:20 +0000)]
Compile .S files with $(AS), set it in configure

Assembler files using the GNU syntax need to be processed by gcc,
whichever compiler is used for C files.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17827 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMark pos_min and pos_max variables as av_uninit to work around false
diego [Thu, 5 Mar 2009 19:15:14 +0000 (19:15 +0000)]
Mark pos_min and pos_max variables as av_uninit to work around false
positive uninitialized variable warnings.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17826 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMark dvdaudio_substream_type variable as av_uninit to work around false
diego [Thu, 5 Mar 2009 19:13:12 +0000 (19:13 +0000)]
Mark dvdaudio_substream_type variable as av_uninit to work around false
positive uninitialized variable warning.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17825 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoPass packet position to the parser, so frame's AVPacket.pos is computed correctly.
schreter [Thu, 5 Mar 2009 07:36:16 +0000 (07:36 +0000)]
Pass packet position to the parser, so frame's AVPacket.pos is computed correctly.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17824 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd handling of frame position in the parser.
schreter [Thu, 5 Mar 2009 07:35:06 +0000 (07:35 +0000)]
Add handling of frame position in the parser.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17823 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: cosmetics: Add a comment with the data of the smallest FLAC
jbr [Thu, 5 Mar 2009 04:40:42 +0000 (04:40 +0000)]
flacdec: cosmetics: Add a comment with the data of the smallest FLAC
frame for future reference.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17822 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: There is an even smaller FLAC frame size possibility.
jbr [Thu, 5 Mar 2009 02:36:17 +0000 (02:36 +0000)]
flacdec: There is an even smaller FLAC frame size possibility.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17821 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: 10l to me. I miscalculated the smallest FLAC frame. It is 16
jbr [Thu, 5 Mar 2009 02:21:35 +0000 (02:21 +0000)]
flacdec: 10l to me. I miscalculated the smallest FLAC frame. It is 16
bytes, not 24.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17820 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: cosmetics: move 2 statements to immediately after frame
jbr [Thu, 5 Mar 2009 01:23:53 +0000 (01:23 +0000)]
flacdec: cosmetics: move 2 statements to immediately after frame
decoding.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17819 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: Simplify frame sync by not using the bitstream reader.
jbr [Thu, 5 Mar 2009 01:15:38 +0000 (01:15 +0000)]
flacdec: Simplify frame sync by not using the bitstream reader.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17818 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: Split the metadata_parse() function into 2 separate functions,
jbr [Thu, 5 Mar 2009 00:56:09 +0000 (00:56 +0000)]
flacdec: Split the metadata_parse() function into 2 separate functions,
parse_streaminfo() and get_metadata_size().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17817 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: Add a check for small buffer size. This ensures reading as
jbr [Wed, 4 Mar 2009 23:55:10 +0000 (23:55 +0000)]
flacdec: Add a check for small buffer size.  This ensures reading as
much of the frame header as possible without excluding the smallest
possible FLAC frame.  It also fixes a false positive warning message
that was being emitted at the end of decoding.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17816 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: cosmetics: Use a more descriptive variable name for the number
jbr [Wed, 4 Mar 2009 23:24:44 +0000 (23:24 +0000)]
flacdec: cosmetics: Use a more descriptive variable name for the number
of bytes read, instead of reusing 'i'.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17815 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: Handle 32 bps data when checking allocated size.
jbr [Wed, 4 Mar 2009 23:16:30 +0000 (23:16 +0000)]
flacdec: Handle 32 bps data when checking allocated size.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17814 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: Check curr_bps after wasted bits are subtracted.
jbr [Wed, 4 Mar 2009 23:10:40 +0000 (23:10 +0000)]
flacdec: Check curr_bps after wasted bits are subtracted.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17813 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix typo: "i" -> "in".
stefano [Wed, 4 Mar 2009 21:50:10 +0000 (21:50 +0000)]
Fix typo: "i" -> "in".

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17812 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd support for ct_type to correctly detect interlaced flag
schreter [Wed, 4 Mar 2009 19:37:19 +0000 (19:37 +0000)]
Add support for ct_type to correctly detect interlaced flag

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17811 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd "deprecated old scaler removed"
michael [Wed, 4 Mar 2009 18:43:20 +0000 (18:43 +0000)]
Add "deprecated old scaler removed"

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17810 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove the swscale dummy option, most (all?) FATE configs should be updated
reimar [Wed, 4 Mar 2009 18:41:47 +0000 (18:41 +0000)]
Remove the swscale dummy option, most (all?) FATE configs should be updated
to work without it.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17809 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years ago100l, interplayvideo uses 8x8 blocks, so call the 8x8 put_pixels_tab function
reimar [Wed, 4 Mar 2009 18:18:49 +0000 (18:18 +0000)]
100l, interplayvideo uses 8x8 blocks, so call the 8x8 put_pixels_tab function
instead of the 16x16 one. Seems to fix decoding on PPC.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17808 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSet AVFrame.reference correctly for nuv decoder.
reimar [Wed, 4 Mar 2009 17:12:58 +0000 (17:12 +0000)]
Set AVFrame.reference correctly for nuv decoder.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17807 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd more correct bound checking in filter_mb().
vitor [Wed, 4 Mar 2009 16:56:55 +0000 (16:56 +0000)]
Add more correct bound checking in filter_mb().

Should fix decoding of CVMAPAQP3_Sony_E.jsv in MinGW

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17806 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd frame buffer allocators. aka simplify calls to
gb [Wed, 4 Mar 2009 08:47:29 +0000 (08:47 +0000)]
Add frame buffer allocators. aka simplify calls to
AVCodecContext.{get,release}_buffer().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17804 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMOV: fix demuxing fragmented files
alexc [Wed, 4 Mar 2009 07:57:09 +0000 (07:57 +0000)]
MOV: fix demuxing fragmented files

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17803 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix a condition that causes an infinite loop, but only when compiled with
melanson [Wed, 4 Mar 2009 05:40:53 +0000 (05:40 +0000)]
Fix a condition that causes an infinite loop, but only when compiled with
gcc 4.2.4 on x86_32. Thanks to Vitor for hunting this down.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17802 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoexcellent first pass at a description; now it's time for the Ministry of
melanson [Wed, 4 Mar 2009 05:24:59 +0000 (05:24 +0000)]
excellent first pass at a description; now it's time for the Ministry of
English Composition to tear it apart and rebuild it, stronger than before

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17801 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoPart 2 of 2 of Kenan Gillet's 'make ff_qcelp_lspf2lpc
reynaldo [Wed, 4 Mar 2009 01:33:56 +0000 (01:33 +0000)]
Part 2 of 2 of Kenan Gillet's 'make ff_qcelp_lspf2lpc
more general' changeset. This one relocates the QCELP
especific code to the qcelpdec.* files.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17800 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoPart 1 of 2 of Kenan Gillet's 'make ff_qcelp_lspf2lpc
reynaldo [Wed, 4 Mar 2009 01:28:07 +0000 (01:28 +0000)]
Part 1 of 2 of Kenan Gillet's 'make ff_qcelp_lspf2lpc
more general' changeset. This one splits ff_qcelp_lspf2lpc
into the QCELP-especific ff_qcelp_lspf2lpc + the more general
ff_qcelp_lspf2lpc.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17799 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: When there is not enough data to read the next header block,
jbr [Wed, 4 Mar 2009 01:08:26 +0000 (01:08 +0000)]
flacdec: When there is not enough data to read the next header block,
reset the bitstream reader instead of skipping backwards.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17798 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSplit rtsp_send_cmd() into two functions, one for the actual sending of the
rbultje [Wed, 4 Mar 2009 00:57:37 +0000 (00:57 +0000)]
Split rtsp_send_cmd() into two functions, one for the actual sending of the
command and a second, new function to read the reply to this command. This
will make it possible to read server notices that are not in response to a
command in future versions, such as EOS or interrupt notices. See "[PATCH]
rtsp.c: split rtsp_send_cmd() in a send- and a receive-function" thread.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17797 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agocosmetics: indentation after last commit
jbr [Wed, 4 Mar 2009 00:53:04 +0000 (00:53 +0000)]
cosmetics: indentation after last commit

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17796 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: Check for an inline header before calling metadata_parse().
jbr [Wed, 4 Mar 2009 00:52:18 +0000 (00:52 +0000)]
flacdec: Check for an inline header before calling metadata_parse().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17795 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: Allocate buffers right after STREAMINFO is parsed.
jbr [Wed, 4 Mar 2009 00:21:46 +0000 (00:21 +0000)]
flacdec: Allocate buffers right after STREAMINFO is parsed.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17794 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAlpha: use -g3 with ccc to allow optimisation with debugging symbols
mru [Tue, 3 Mar 2009 23:53:29 +0000 (23:53 +0000)]
Alpha: use -g3 with ccc to allow optimisation with debugging symbols

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17793 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix syntax for the libfaad_decoder definition.
stefano [Tue, 3 Mar 2009 23:52:31 +0000 (23:52 +0000)]
Fix syntax for the libfaad_decoder definition.

Fix compilation (when libfaad is enabled).

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17792 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agocosmetics: indentation after last commit
jbr [Tue, 3 Mar 2009 23:50:21 +0000 (23:50 +0000)]
cosmetics: indentation after last commit

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17791 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: Avoid parsing the STREAMINFO multiple times.
jbr [Tue, 3 Mar 2009 23:49:36 +0000 (23:49 +0000)]
flacdec: Avoid parsing the STREAMINFO multiple times.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17790 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRename avctx_opts to avcodec_opts.
stefano [Tue, 3 Mar 2009 23:32:10 +0000 (23:32 +0000)]
Rename avctx_opts to avcodec_opts.

The new name is more meaningful and consistent with avformat_opts
and sws_opts.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17789 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAllow --enable-swscale until FATE is updated
mru [Tue, 3 Mar 2009 23:07:12 +0000 (23:07 +0000)]
Allow --enable-swscale until FATE is updated

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17788 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove old scaler.
michael [Tue, 3 Mar 2009 22:51:30 +0000 (22:51 +0000)]
Remove old scaler.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17786 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoEnable AVFMT_FLAG_NONBLOCK.
michael [Tue, 3 Mar 2009 20:25:21 +0000 (20:25 +0000)]
Enable AVFMT_FLAG_NONBLOCK.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17785 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDo usleep(10000) when all demuxers returned EAGAIN.
michael [Tue, 3 Mar 2009 20:24:58 +0000 (20:24 +0000)]
Do usleep(10000) when all demuxers returned EAGAIN.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17784 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoReplace 2 return AVERROR(EAGAIN); by continue, these being nicer
michael [Tue, 3 Mar 2009 20:24:17 +0000 (20:24 +0000)]
Replace 2 return AVERROR(EAGAIN); by continue, these being nicer
and the EAGAIN where just added as example not because they made sense.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17783 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoIf a demuxer returns EAGAIN, try another demuxer.
michael [Tue, 3 Mar 2009 19:50:04 +0000 (19:50 +0000)]
If a demuxer returns EAGAIN, try another demuxer.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17782 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMOV: fix crash when 'meta' occurs before first 'trak'
alexc [Tue, 3 Mar 2009 18:19:44 +0000 (18:19 +0000)]
MOV: fix crash when 'meta' occurs before first 'trak'

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17781 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRename "fd1" variable ro "fd". There were previously two variables (fd1 and
rbultje [Tue, 3 Mar 2009 17:06:18 +0000 (17:06 +0000)]
Rename "fd1" variable ro "fd". There were previously two variables (fd1 and
fd2) and one was just removed, so naming the other "fd1" is counter-intuitive.
See "[RFC] rtsp.c EOF support" thread.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17780 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd url_get_file_handle(), which is used to get the file descriptor
rbultje [Tue, 3 Mar 2009 17:04:51 +0000 (17:04 +0000)]
Add url_get_file_handle(), which is used to get the file descriptor
associated with the I/O handle (e.g. the fd returned by open()). See
"[RFC] rtsp.c EOF support" thread.

There were previously some URI-specific implementations of the same idea,
e.g. rtp_get_file_handles() and udp_get_file_handle(). All of these are
deprecated by this patch and will be removed at the next major API bump.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17779 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoReindent after r17777.
rbultje [Tue, 3 Mar 2009 16:53:04 +0000 (16:53 +0000)]
Reindent after r17777.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17778 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMake RTSP-MS-over-UDP negotiation work. See "[PATCH] RTSP-MS 8/15: fix
rbultje [Tue, 3 Mar 2009 16:52:35 +0000 (16:52 +0000)]
Make RTSP-MS-over-UDP negotiation work. See "[PATCH] RTSP-MS 8/15: fix
RTSP-MS UDP" thread on mailinglist.

Basically, UDP setup needs to be done in a particular order (first rtx
on two UDP ports (one for RTP, one for RTCP), then the other streams over
one, single port for all of them together). Not doing this correctly results
in a "461" error (invalid transport) during setup.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17777 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRecognize the "application" data type, which is used at least in ASF/RTP
rbultje [Tue, 3 Mar 2009 16:48:56 +0000 (16:48 +0000)]
Recognize the "application" data type, which is used at least in ASF/RTP
streams. However, at the same time, setup of this stream might be required
for UDP-sessions to work correctly, at the same time it will cause TCP
sessions to barf. Therefore, add a special case to the TCP code to skip
setup of these application streams when we are dealing with WMS servers.

See discussion in "[PATCH] RTSP-MS 8/15: fix RTSP-MS UDP" thread.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17776 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd a context to av_log() calls.
benoit [Tue, 3 Mar 2009 16:19:37 +0000 (16:19 +0000)]
Add a context to av_log() calls.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17775 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoA quick description of Rate distortion theory.
michael [Tue, 3 Mar 2009 16:09:19 +0000 (16:09 +0000)]
A quick description of Rate distortion theory.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17774 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDo not use a macro to generate a single AVCodec declaration.
diego [Tue, 3 Mar 2009 15:48:52 +0000 (15:48 +0000)]
Do not use a macro to generate a single AVCodec declaration.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17773 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoQuick desription of the viterbi algorithm so i dont have to repeat it
michael [Tue, 3 Mar 2009 15:35:20 +0000 (15:35 +0000)]
Quick desription of the viterbi algorithm so i dont have to repeat it
over and over again on the ML.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17772 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoWhen a H.264 stream references a PPS or SPS id which doesn't exist, instead of
takis [Tue, 3 Mar 2009 14:32:24 +0000 (14:32 +0000)]
When a H.264 stream references a PPS or SPS id which doesn't exist, instead of
just saying that a non-existing id is referenced, show the value of the id.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17771 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd vhook removal to the changelog.
diego [Tue, 3 Mar 2009 14:12:41 +0000 (14:12 +0000)]
Add vhook removal to the changelog.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17770 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove deprecated vhook subsystem.
diego [Tue, 3 Mar 2009 14:09:10 +0000 (14:09 +0000)]
Remove deprecated vhook subsystem.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17769 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove size_t cast in setting s->priv_data directly to the (integer) file
rbultje [Tue, 3 Mar 2009 13:57:09 +0000 (13:57 +0000)]
Remove size_t cast in setting s->priv_data directly to the (integer) file
descriptor returned by open(). This removes some dubious doublecasts such
as priv_data = (void *) (size_t) some_integer, and is always safe on systems
we care about because sizeof(int)<=sizeof(void*). See comments from Mans and
Michael in "[RFC] rtsp.c EOF support" thread.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17768 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDon't let finalize_packet() touch pkt->stream_index. Instead, let individual
rbultje [Tue, 3 Mar 2009 13:51:34 +0000 (13:51 +0000)]
Don't let finalize_packet() touch pkt->stream_index. Instead, let individual
payload handlers take care of that themselves at their own option. What this
patch really does is "fix" a bug in MS-RTSP protocol where incoming packets
are always coming in over the connection (UDP) or interleave-id (TCP) of
the stream-id of the first ASF packet in the RTP packet. However, RTP packets
may contain multiple ASF packets (and usually do, from what I can see), and
therefore this leads to playback bugs. The intended stream-id per ASF packet
is given in the respective ASF packet header. The ASF demuxer will correctly
read this and set pkt->stream_index, but since the "stream" parameter can
not be known to rtpdec.c or any of the RTP/RTSP code, the "st" parameter
in all these functions is basically invalid. Therefore, using st->id as
pkt->stream_index leads to various playback bugs. The result of this patch
is that pkt->stream_index is left untouched for RTP/ASF (and possibly for
other payloads that have similar behaviour).

The patch was discussed in the "[PATCH] rtpdec.c: don't overwrite
pkt->stream_index in finalize_packet()" thread on the mailinglist.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17767 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSet PixFmtInfo::{x, y}_chroma_shift for VDPAU and VAAPI formats.
gb [Tue, 3 Mar 2009 13:43:24 +0000 (13:43 +0000)]
Set PixFmtInfo::{x, y}_chroma_shift for VDPAU and VAAPI formats.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17766 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoReindent after r17764.
rbultje [Tue, 3 Mar 2009 13:42:16 +0000 (13:42 +0000)]
Reindent after r17764.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17765 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoIn the current implementation of rtp_parse_packet(), finalize_packet() is
rbultje [Tue, 3 Mar 2009 13:41:50 +0000 (13:41 +0000)]
In the current implementation of rtp_parse_packet(), finalize_packet() is
called for all packets with an internal handler function but only for
non-first packets from dynamic payload parse_packet() handlers. This patch
fixes that. Bug was noticed by Luca in "[PATCH] rtpdec.c: don't overwrite
pkt->stream_index in finalize_packet()" thread.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17764 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoStart Changelog for next version.
diego [Tue, 3 Mar 2009 13:38:40 +0000 (13:38 +0000)]
Start Changelog for next version.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17763 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agocosmetics: Add some empty lines for readability.
diego [Tue, 3 Mar 2009 13:30:57 +0000 (13:30 +0000)]
cosmetics: Add some empty lines for readability.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17762 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFix allocated length of the HTTP authentication request field buffer, as
rbultje [Tue, 3 Mar 2009 13:26:17 +0000 (13:26 +0000)]
Fix allocated length of the HTTP authentication request field buffer, as
noticed by Stefano and Luca in the "[PATCH]RTSP Basic Authentication"
mailinglist thread.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17761 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoCosmetics: Typo
takis [Tue, 3 Mar 2009 13:25:53 +0000 (13:25 +0000)]
Cosmetics: Typo

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17760 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoUse sign_extend().
benoit [Tue, 3 Mar 2009 13:11:10 +0000 (13:11 +0000)]
Use sign_extend().
On behalf of Jai.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17759 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd my GPG fingerprint
takis [Tue, 3 Mar 2009 13:01:38 +0000 (13:01 +0000)]
Add my GPG fingerprint

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17758 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoCosmetics: Typo
takis [Tue, 3 Mar 2009 12:58:49 +0000 (12:58 +0000)]
Cosmetics: Typo

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17757 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agocosmetics: Fix indentation.
diego [Tue, 3 Mar 2009 12:57:07 +0000 (12:57 +0000)]
cosmetics: Fix indentation.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17756 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoDo not add -D_FILE_OFFSET_BITS=64 and -D_LARGEFILE_SOURCE unconditionally to
diego [Tue, 3 Mar 2009 12:52:12 +0000 (12:52 +0000)]
Do not add -D_FILE_OFFSET_BITS=64 and -D_LARGEFILE_SOURCE unconditionally to
CFLAGS.  Apparently there are some systems that do not like these definitions.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17755 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoRemove mpeg4aac dependency declaration, the decoder was removed.
diego [Tue, 3 Mar 2009 12:45:48 +0000 (12:45 +0000)]
Remove mpeg4aac dependency declaration, the decoder was removed.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17753 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoconfigure: improve temp file creation and cleanup
mru [Tue, 3 Mar 2009 08:53:55 +0000 (08:53 +0000)]
configure: improve temp file creation and cleanup

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17752 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: Warn about invalid max blocksize and limit the minimum value.
jbr [Tue, 3 Mar 2009 05:53:38 +0000 (05:53 +0000)]
flacdec: Warn about invalid max blocksize and limit the minimum value.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17751 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoH.264: Simplify decode_residual()
alexc [Tue, 3 Mar 2009 05:26:39 +0000 (05:26 +0000)]
H.264: Simplify decode_residual()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17750 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agocosmetics: remove a pointless comment
jbr [Tue, 3 Mar 2009 05:25:58 +0000 (05:25 +0000)]
cosmetics: remove a pointless comment

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17749 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: Remove unused variable, min_blocksize.
jbr [Tue, 3 Mar 2009 05:25:23 +0000 (05:25 +0000)]
flacdec: Remove unused variable, min_blocksize.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17748 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: Return error when blocksize code of 0 is found. It is a
jbr [Tue, 3 Mar 2009 05:22:44 +0000 (05:22 +0000)]
flacdec: Return error when blocksize code of 0 is found. It is a
reserved value per the FLAC format documentation.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17747 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoEnable PB-frames decoding for H.263
kostya [Tue, 3 Mar 2009 05:18:39 +0000 (05:18 +0000)]
Enable PB-frames decoding for H.263

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17746 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd PB-frame decoding support for H.263/i263 (and enable it for i263)
kostya [Tue, 3 Mar 2009 05:17:22 +0000 (05:17 +0000)]
Add PB-frame decoding support for H.263/i263 (and enable it for i263)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17745 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoalacdec: Simplify reading of uncompressed samples by using
jbr [Tue, 3 Mar 2009 04:57:02 +0000 (04:57 +0000)]
alacdec: Simplify reading of uncompressed samples by using
get_sbits_long().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17744 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: Avoid trying to read 33 bits. This occurs when the source
jbr [Tue, 3 Mar 2009 04:45:45 +0000 (04:45 +0000)]
flacdec: Avoid trying to read 33 bits.  This occurs when the source
is 32 bits-per-sample and channel decorrelation is used.  Such files
are valid, but not supported currently.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17743 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: ALT_BITSTREAM_READER is no longer required.
jbr [Tue, 3 Mar 2009 02:53:11 +0000 (02:53 +0000)]
flacdec: ALT_BITSTREAM_READER is no longer required.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17742 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: use get_sbits_long() where needed.
jbr [Tue, 3 Mar 2009 02:19:01 +0000 (02:19 +0000)]
flacdec: use get_sbits_long() where needed.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17741 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd a get_sbits_long() function.
jbr [Tue, 3 Mar 2009 02:00:47 +0000 (02:00 +0000)]
Add a get_sbits_long() function.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17740 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoALAC: use sign_extend() from mathops.h
mru [Tue, 3 Mar 2009 01:53:54 +0000 (01:53 +0000)]
ALAC: use sign_extend() from mathops.h

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17739 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd sign_extend() function to mathops.h
mru [Tue, 3 Mar 2009 00:03:55 +0000 (00:03 +0000)]
Add sign_extend() function to mathops.h

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17738 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoSimplify show_bits_long and copy the GetBitsContext around only once instead of twice.
reimar [Mon, 2 Mar 2009 19:42:31 +0000 (19:42 +0000)]
Simplify show_bits_long and copy the GetBitsContext around only once instead of twice.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17736 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoflacdec: Use get/skip_bits_long() for more than 17-bits and
jbr [Mon, 2 Mar 2009 17:32:53 +0000 (17:32 +0000)]
flacdec: Use get/skip_bits_long() for more than 17-bits and
get/skip_bits() for 17-bits or less.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17735 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFactor out block decoding in ff_h263_decode_mb()
kostya [Mon, 2 Mar 2009 17:18:49 +0000 (17:18 +0000)]
Factor out block decoding in ff_h263_decode_mb()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17734 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoConsider all packets in the parser, not just ones with timestamps,
michael [Mon, 2 Mar 2009 15:13:58 +0000 (15:13 +0000)]
Consider all packets in the parser, not just ones with timestamps,
this should greatly simplify handling of packet pos.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17733 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoFavor container packets that end after the first byte of the access
michael [Mon, 2 Mar 2009 15:12:26 +0000 (15:12 +0000)]
Favor container packets that end after the first byte of the access
unit in fetch_timestamp(). This should make no difference for valid
streams but may help invalid ones, also its needed for future changes.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17732 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoCall ff_fetch_timestamp() for mpeg1/2 when a picture start code is found instead
michael [Mon, 2 Mar 2009 14:53:18 +0000 (14:53 +0000)]
Call ff_fetch_timestamp() for mpeg1/2 when a picture start code is found instead
of calling it at the end of a frame with a large negative offset.
This significantly reduces the maximal distance in container packets between
the point where the first byte of the "access unit" was stored and where
we call ff_fetch_timestamp() thus reducing the constraints on our parser.
Also change the parser from next_frame_offset to cur, this is needed
because now the reference is from container packet start instead of
frame start. (i previously misinterpreted this as bug)

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17731 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoversion.h should depend on config.mak.
diego [Mon, 2 Mar 2009 09:33:57 +0000 (09:33 +0000)]
version.h should depend on config.mak.
The extra version string that is passed to configure is recorded in config.mak
and changes to config.mak can therefore make version.h rebuilds necessary.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17730 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoAdd context to some av_log() calls.
benoit [Mon, 2 Mar 2009 09:28:37 +0000 (09:28 +0000)]
Add context to some av_log() calls.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17729 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

15 years agoMerge three conditions in a single 'if' instead of two.
benoit [Mon, 2 Mar 2009 09:22:17 +0000 (09:22 +0000)]
Merge three conditions in a single 'if' instead of two.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17728 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b