Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
de39cdf5
Commit
de39cdf5
authored
Mar 30, 2005
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverting 1.66 -> 1.67 change
Originally committed as revision 4096 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
5b225466
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
mov.c
libavformat/mov.c
+7
-7
No files found.
libavformat/mov.c
View file @
de39cdf5
...
...
@@ -1817,10 +1817,11 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
#ifdef DEBUG
fprintf
(
stderr
,
"sc[ffid %d]->sample_size = %d
\n
"
,
sc
->
ffindex
,
sc
->
sample_size
);
#endif
// sample_size is not always correct for audio. Quicktime ignores this value and
// computes it differently.
if
(
s
->
streams
[
sc
->
ffindex
]
->
codec
.
codec_type
==
CODEC_TYPE_VIDEO
)
size
=
sc
->
sample_size
?
sc
->
sample_size
:
sc
->
sample_sizes
[
sc
->
current_sample
];
//size = sc->sample_sizes[sc->current_sample];
// that ain't working...
//size = (sc->sample_size)?sc->sample_size:sc->sample_sizes[sc->current_sample];
size
=
(
sc
->
sample_size
>
1
)
?
sc
->
sample_size
:
sc
->
sample_sizes
[
sc
->
current_sample
];
sc
->
current_sample
++
;
sc
->
left_in_chunk
--
;
...
...
@@ -1906,8 +1907,7 @@ again:
#ifdef MOV_SPLIT_CHUNKS
/* split chunks into samples */
if
(
s
->
streams
[
sc
->
ffindex
]
->
codec
.
codec_type
==
CODEC_TYPE_VIDEO
)
{
// This does not support split audio, as the sample_size is often not correct
if
(
sc
->
sample_size
==
0
)
{
idx
=
sc
->
sample_to_chunk_index
;
if
((
idx
+
1
<
sc
->
sample_to_chunk_sz
)
&&
(
sc
->
next_chunk
>=
sc
->
sample_to_chunk
[
idx
+
1
].
first
))
...
...
@@ -1917,7 +1917,7 @@ again:
mov
->
partial
=
sc
;
/* we'll have to get those samples before next chunk */
sc
->
left_in_chunk
=
sc
->
sample_to_chunk
[
idx
].
count
-
1
;
size
=
sc
->
sample_size
?
sc
->
sample_size
:
sc
->
sample_sizes
[
sc
->
current_sample
];
size
=
(
sc
->
sample_size
>
1
)
?
sc
->
sample_size
:
sc
->
sample_sizes
[
sc
->
current_sample
];
}
sc
->
current_sample
++
;
...
...
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