Statistics
| Branch: | Revision:

ffmpeg / tests @ 9c5a9e6b

# Date Author Comment
b00803e0 11/09/2009 11:09 PM Justin Ruggles

fix a rounding error in the PSNR calculation and update the many regression
test references that this change affects.

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

77f66963 10/27/2009 07:34 PM Stefano Sabatini

Split codec-regression.sh again and create a lavfi-regression.sh for
running the libavfilter tests.

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

8f1e4d4f 10/24/2009 05:01 PM Stefano Sabatini

Split codec-regression.sh, and create the lavf-regression.sh script.

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

2189dbc4 10/24/2009 12:39 PM Måns Rullgård

Fix codectest

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

f94e56cf 10/23/2009 10:49 PM Stefano Sabatini

Split codec-regression.sh, put all the code which can be shared by
other regression test scripts in the regression-funcs.sh file.

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

b74d42ee 10/22/2009 08:43 PM Daniel Verkamp

Build extradata in adpcm_ms encoder.

This fixes issue #1244.

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

2bc70a76 10/20/2009 03:37 PM Reimar Döffinger

Print "NOPTS" when AV_NOPTS_VALUE is encountered during seek regression tests.
This makes the output nicely aligned even in for those cases, and might
also avoid some issues with printf implementations that can not handle well
very large float values (e.g. msvcrt without MinGW wrapper IIRC)....

3a408eff 10/19/2009 09:59 PM Stefano Sabatini

Move up the $test variable definition, together with the other
definitions of variables defined using the positional arguments of the
script.

Should ease the split of the file.

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

dd65909a 10/19/2009 09:54 PM Stefano Sabatini

Give symbolic names to the positional parameters of the
codec-regression.sh script.

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

933018e2 10/19/2009 12:40 PM Reimar Döffinger

Align the seek regression test output for better readability.

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

a828d48c 10/18/2009 04:33 PM Reimar Döffinger

Replace seek test error return numbers by the corresponding E* strings.
Hopefully this fixes regression tests on DOS.
It breaks alignment of the output a bit more, but this should be easy to
fix with a second patch.

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

a9b02043 10/11/2009 11:50 AM Reimar Döffinger

Do the dnxhd_720p_rd test with -threads 4 in order to also test the threading code.

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

9797ce58 10/06/2009 10:47 PM Justin Ruggles

Add ALAC encoding and decoding regression tests.

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

3fcb5113 10/02/2009 07:27 AM Reimar Döffinger

wav demuxer: return AVERROR_EOF instead of AVERROR when the end of
the file is reached normally, without any error.

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

4bd7cb8b 10/02/2009 07:19 AM Reimar Döffinger

Fix seek regression test: several AVERROR correctly changed to AVERROR_EOF.

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

593b50ce 10/02/2009 06:38 AM Reimar Döffinger

Make seek regression tests fit after previous get_buffer change.
The au and aiff demuxers would always return an empty packet before
detecting EOF, this is now fixed with av_get_packet etc. returning EOF.

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

391dbb54 09/30/2009 03:13 PM Lasse Reinhold

Use floating point mathematics when encoding mpeg audio.
Fixes issue 975: high db peak levels when encoding mp2

Original patch by Lasse Reinhold, lassemikkelreinhold hotmail

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

e935fa9e 09/29/2009 09:53 PM Stefano Sabatini

Prefer -vcodec rawvideo over -vcodec huffyuv for lavfi regression
tests, as the use of huffyuv may cause the auto-insertion of a scale
filter, thus masking the mis-behavior of some filter.

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

0e829974 09/29/2009 07:49 PM Michael Kostylev

Fix md5 program invocation for BSD.
patch by Michael Kostylev, michael.kostylev gmail com

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

ebb651d5 09/29/2009 07:17 PM Reimar Döffinger

Make sure that dv encoder initializes all encoded packet data.
The specification does not say which value to use for unused
parts, so fill all unused bytes with 0xff, which is consistent
with what DV usually uses for reserved or unused parts.

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

7f5c1421 09/27/2009 10:29 AM Stefano Sabatini

Remove duplicated / stray code which slipped in with r20057.

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

06d7f30a 09/27/2009 10:06 AM Reimar Döffinger

Get rid of "function" "keywords" in lavfilter testing code, hopefully will
make regressions tests runnable again with all shells.

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

40e02409 09/27/2009 09:33 AM Stefano Sabatini

Implement a lavfitest target for testing regressions in libavfilter.
The target is disabled.

See the thread: "[PATCH] libavfilter-soc: regression test for libavfilter".

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

670bd200 09/21/2009 02:46 AM Måns Rullgård

regtest: do not write to /tmp/ffmpeg$$

Nothing useful was ever written to this file. It did, however,
often cause spurious failures when the file was left behind by
another user on the system.

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

96fdb624 09/21/2009 01:40 AM Måns Rullgård

Split dnxhd regression test so the parts can run in parallel

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

3fdd8276 09/19/2009 10:53 AM Reimar Döffinger

Use default sws_flags for dnxhd regression tests and also test the "-mbd rd"
variant of the encoder.

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

d7c2e8e3 09/19/2009 10:21 AM Reimar Döffinger

Update regression reference for DNxHD test update

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

60820866 09/19/2009 10:20 AM Reimar Döffinger

Change DNxHD regression tests to test both 720p and 1080i instead of just 1080i
for better test coverage.

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

0ae2ccff 09/18/2009 09:29 PM Reimar Döffinger

Change dnxhd regression tests for r19912 which fixed uninitialized data in
encoded data.

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

afcdf342 09/17/2009 09:35 PM Baptiste Coudurier

update seek regression tests due to r19902

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

ef002fa3 09/17/2009 07:51 PM Reimar Döffinger

Update dnxhd rotozoom regression test values with more sane ones that match
the results of most FATE machines.

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

9deba199 09/17/2009 07:07 PM Niobos

fix pes overhead computation, patch by Niobos, niobos at dest-unreach dot be

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

bb8cd7b3 09/17/2009 06:57 PM Reimar Döffinger

Update dnxhd regression test to match the majority of FATE machines (which
also have a much saner stddev).

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

a5083f66 09/17/2009 06:06 PM Reimar Döffinger

Add dnxhd test to regression tests.

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

af8aae3f 09/06/2009 03:59 PM Ivan Schreter

disable new seeking code in mpeg-ts per #ifdef (use old read_seek by default)

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

a8dd8dc6 08/22/2009 04:07 PM Ivan Schreter

Use generic multi-stream key frame finding routine to implement read_seek2 and map
read_seek to read_seek2.

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

194d4b49 08/10/2009 06:06 PM Aurelien Jacobs

matroskadec: correctly parse flags for simpleblock frames

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

966116b9 08/07/2009 02:53 PM Diego Biurrun

Remove some hunks of unused and disabled code cruft.

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

6c2a778d 07/22/2009 08:28 AM Carl Eugen Hoyos

Remove unused global variable.

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

9276b8f0 07/22/2009 08:26 AM Carl Eugen Hoyos

Calculate gradient from parameter instead of using a global variable.

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

07874f22 07/21/2009 10:37 AM Carl Eugen Hoyos

Due to a typo in videogen.c, the regression test videos were not as
complex as originally planned.
Typo fixed (the background moves less linear now) and regression test
results updated.

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

df1550f0 07/04/2009 07:56 AM Baptiste Coudurier

set index duration to 0 for cbr, specifying whole container coverage

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

76b092e2 07/04/2009 07:52 AM Baptiste Coudurier

use ber4 length for descriptors preferred by specs

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

6a43aab0 07/04/2009 07:49 AM Baptiste Coudurier

write profile and level local tag in mpeg descriptor

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

0444a8c5 06/30/2009 11:28 AM Michael Niedermayer

Update seek regression checksums due to:
r19300
Rewrite mp3 parser. New code is much simpler and does not drop
stuff at random.

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

61f9e3c1 06/30/2009 07:41 AM Baptiste Coudurier

correctly compute frame flags with closed gop

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

d8b2d834 06/20/2009 01:07 PM Yoshihisa Uchida

Fix yamaha adpcm stereo (issue 1117).

Patch by Yoshihisa Uchida, yoshihisa D uchida A gmail

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

3f3f3ba7 06/20/2009 12:52 PM Yoshihisa Uchida

Fix onMetaData property count in flv files (issue 1206).

Patch by Yoshihisa Uchida, yoshihisa D uchida A gmail

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

97668ac7 06/18/2009 11:44 PM Stefano Sabatini

Rename tests/ffmpeg.regression.ref to tests/vsynth.regression.ref,
since that is the name of the corresponding test.

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

a4ddf509 06/14/2009 11:14 PM Måns Rullgård

regtest: print commands also for image format tests

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

0c137557 05/27/2009 12:44 AM Baptiste Coudurier

demux whole PES packets from TS

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

ed1dc74e 05/27/2009 12:14 AM Wolfram Gloger

Fix off by one offset with fetch_timestamps, pts_parser_problem.mpg.
Patch by Wolfram Gloger, wmglo at dentm dot med dot uni-muenchen dot de.

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

45e5feda 05/23/2009 09:28 AM Baptiste Coudurier

Fix regression tests, diff was due to a patch to mpeg-2 parser timestamp fetching, pending,
current ref is technically more correct though.

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

606d48ce 05/23/2009 07:17 AM Larbi Joubala

fix hdlr descr in mp4 which use c string, patch by Larbi Joubala, larbi dot joubala at resonate-mp4 dot com

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

c69d2241 05/23/2009 06:09 AM corp186

compute total bitrate more accurately, patch by corp186, chasedouglas at gmail dot com

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

b10d7e4e 05/23/2009 04:07 AM Baptiste Coudurier

pad last audio frame when encoding

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

325aef38 05/11/2009 08:45 AM David Conrad

Update regression tests for y4m after r18796
The default changed from 420mpeg2 to 420jpeg

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

e4358e70 05/11/2009 02:30 AM Baptiste Coudurier

write a single pes for video frames, some proprietary player needs it

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

31df40a1 05/10/2009 01:02 AM Baptiste Coudurier

fix total bitrate computation, based on patch by corp186, chasedouglas at gmail dot com

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

9a3eaeeb 05/08/2009 03:14 PM Michael Niedermayer

Correct x/ymin to avoid segfault due to out of picture reads.

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

a3d23e15 04/12/2009 12:25 AM Baptiste Coudurier

fix 6 channels raw pcm demuxing, raw pcm now demux a fixed number of samples

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

f77dddfc 04/10/2009 05:46 PM Carl Eugen Hoyos

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

300a3d0d 04/05/2009 01:02 PM Michael Niedermayer

Make sure the last bits of huffyuv frames are zeroed.
Fixes issue946

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

1b4a516b 03/30/2009 09:32 PM Diego Biurrun

Rename regression test result files from b-libav* to b-lavf* for consistency.
This requires updating the gxf regression checksum since the gxf muxer puts
the filename in files it creates.

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

67c447a6 03/30/2009 08:57 PM Måns Rullgård

Fix running regression tests on remote targets

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

7a8d0e97 03/30/2009 01:29 PM Diego Biurrun

Skip creation of tests/data directory in individual regression test scripts.
It is already being taken care of by the Makefile.

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

d7167f05 03/30/2009 12:27 PM Diego Biurrun

Move generated file aynth1.sw to the data subdirectory. Thus it does not have
to be removed separately and there is less clutter in the tests directory.

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

6117ffbe 03/30/2009 12:00 PM Diego Biurrun

Rename regression.sh --> codec-regression.sh. Now all regression test scripts
carry the regression test they run as prefix in their name.

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

767e14c3 03/30/2009 10:05 AM Diego Biurrun

Rename server-regression.sh --> ffserver-regression.sh for consistency.

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

0bb5f0fa 03/30/2009 05:22 AM Diego Biurrun

cosmetics: Rename 'do_libav' function to 'do_lavf'.

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

209b9d56 03/29/2009 09:29 PM Diego Biurrun

Rename libav.regression.ref --> lavf.regression.ref.
This matches the new name of the test target.

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

688a4773 03/29/2009 08:17 PM Diego Biurrun

Rename test.conf --> ffserver.conf, the new name is more meaningful.

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

62cb577e 03/29/2009 05:22 PM Diego Biurrun

Rename seek_test.sh --> seek-regression.sh for greater consistency.

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

888facff 03/27/2009 08:24 AM Benoit Fouet

Fix seek test build, by undefining printf and fprintf.

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

e2eb0f52 03/26/2009 02:15 PM Benoit Fouet

Fix a warning on an uninitialized variable.

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

8b9794e5 03/21/2009 08:34 PM Ronald S. Bultje

Remove index writing in RM muxer, since it is broken (multiple streams per
single index chunk) and is always empty anyway. See "[PATCH] rmenc.c: remove
index writing" thread.

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

899a8fa1 03/21/2009 10:25 AM Reimar Döffinger

Fix avpicture_get_size for non-paletted formats with a helper palette
to not include the size of that palette.
Also clarify its documentation.

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

31e2d5d3 03/21/2009 10:03 AM Baptiste Coudurier

update ffserver regression ref

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

92a0f338 03/21/2009 07:35 AM Baptiste Coudurier

fix valid seeking range

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

a9c6fc7b 03/21/2009 05:03 AM Baptiste Coudurier

update seek regression ref due to 18063

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

59f60d05 03/21/2009 02:06 AM Justin Ruggles

Fix the ogg regression test, which was broken by r18092. This is an
expected change because the ogg muxer with FLAC encoder uses the maximum
frame size estimate since it cannot rewrite the real maximum frame size
at end of encoding.

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

effcedf7 03/20/2009 05:23 PM Daniel Verkamp

PCX encoder that handles 1-, 8-, and 24-bpp pixfmts.

Patch by Daniel Verkamp, daniel drv nu

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

21c6438f 03/20/2009 01:39 AM Baptiste Coudurier

typo, fix eof check

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

b9edbe99 03/20/2009 01:23 AM Baptiste Coudurier

do not write ffm write index by default, detect if file is being written and return EOF

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

ed6ae6a5 03/14/2009 11:39 PM Baptiste Coudurier

use utc time for timestamp and do not set it if not specified

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

bd36f175 03/14/2009 08:50 PM Reimar Döffinger

Make pcm_read_seek treat negative time stamps as 0, this avoids incorrectly
seeking before data_offset and is more consistent with how the generic index
seeking code handles it.

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

b82744c9 03/14/2009 03:53 PM Michael Niedermayer

Switch regression test to the new seeking API.

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

4e35ffa9 03/13/2009 07:37 PM Baptiste Coudurier

fix swf seeking by fixing new stream detection

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

fc34a08d 03/12/2009 03:17 AM Baptiste Coudurier

remove sws_flags, seems to have no effect

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

b686d0ab 03/11/2009 07:16 AM Baptiste Coudurier

mxf and mxf d10 regression tests

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

60f75ad2 03/09/2009 05:44 PM Reimar Döffinger

Fix seek regression test broken by r17905, seeking fails completely
for swf before and after, but it now incorrectly creates additional
streams.

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

29a68cf0 03/09/2009 03:38 PM Reimar Döffinger

Convert spurious DOS line breaks to UNIX line breaks in seek regression
test reference file.

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

6b4fab72 03/09/2009 03:34 AM Baptiste Coudurier

change path pattern to be similar to existing files, and remove useless buffer

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

aaa43de3 03/09/2009 01:35 AM Baptiste Coudurier

write flt packet, might need some tweaking but it works

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

a96b1a90 03/09/2009 01:10 AM Baptiste Coudurier

correctly interleave audio and video according to specs

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

9885e9a6 03/09/2009 12:15 AM Baptiste Coudurier

write timecode track in gxf

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

46a7e3ec 03/09/2009 12:14 AM Baptiste Coudurier

write timecode track in gxf

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

990287c4 03/08/2009 10:12 PM Baptiste Coudurier

remove unneeded and empty user data

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

f48b9304 03/06/2009 01:31 AM Justin Ruggles

flacdec: Parse the metadata header in the raw FLAC demuxer.

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

61c23c15 03/05/2009 07:36 AM Ivan Schreter

Pass packet position to the parser, so frame's AVPacket.pos is computed correctly.

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