Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
61452d56
Commit
61452d56
authored
Mar 02, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing total_frames
Originally committed as revision 5101 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
98740f5a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
avienc.c
libavformat/avienc.c
+6
-7
libav.regression.ref
tests/libav.regression.ref
+1
-1
No files found.
libavformat/avienc.c
View file @
61452d56
...
...
@@ -613,22 +613,21 @@ static int avi_write_idx1(AVFormatContext *s)
file_size
=
url_ftell
(
pb
);
nb_frames
=
0
;
for
(
n
=
0
;
n
<
s
->
nb_streams
;
n
++
)
{
if
(
avi
->
frames_hdr_strm
[
n
]
!=
0
)
{
assert
(
avi
->
frames_hdr_strm
[
n
]);
stream
=
s
->
streams
[
n
]
->
codec
;
url_fseek
(
pb
,
avi
->
frames_hdr_strm
[
n
],
SEEK_SET
);
ff_parse_specific_params
(
stream
,
&
au_byterate
,
&
au_ssize
,
&
au_scale
);
if
(
au_ssize
==
0
)
{
put_le32
(
pb
,
avi
->
packet_count
[
n
]);
nb_frames
+=
avi
->
packet_count
[
n
];
}
else
{
put_le32
(
pb
,
avi
->
audio_strm_length
[
n
]
/
au_ssize
);
}
}
}
if
(
avi
->
frames_hdr_all
!=
0
)
{
url_fseek
(
pb
,
avi
->
frames_hdr_all
,
SEEK_SET
);
put_le32
(
pb
,
nb_frames
);
if
(
stream
->
codec_type
==
CODEC_TYPE_VIDEO
)
nb_frames
=
FFMAX
(
nb_frames
,
avi
->
packet_count
[
n
]);
}
assert
(
avi
->
frames_hdr_all
);
url_fseek
(
pb
,
avi
->
frames_hdr_all
,
SEEK_SET
);
put_le32
(
pb
,
nb_frames
);
url_fseek
(
pb
,
file_size
,
SEEK_SET
);
}
return
0
;
...
...
tests/libav.regression.ref
View file @
61452d56
ffmpeg regression test
ffe84c1d286255bb6856f864b8122b6a
*./data/b-libav.avi
3175f33f01e7d0e1ee4bf7f7e4894393
*./data/b-libav.avi
342282 ./data/b-libav.avi
./data/b-libav.avi CRC=0xccab3a27
6f4dca897d9a009009798e434fe5f651 *./data/b-libav.asf
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment