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
aa0cb16c
Commit
aa0cb16c
authored
Jul 18, 2012
by
Marton Balint
Committed by
Luca Barbato
Jan 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mxf: Fix off by one error in d10 aes3 decoding
Without this fix the last sample was missing from the packet.
parent
42f91322
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mxfdec.c
libavformat/mxfdec.c
+1
-1
No files found.
libavformat/mxfdec.c
View file @
aa0cb16c
...
@@ -312,7 +312,7 @@ static int mxf_get_d10_aes3_packet(AVIOContext *pb, AVStream *st, AVPacket *pkt,
...
@@ -312,7 +312,7 @@ static int mxf_get_d10_aes3_packet(AVIOContext *pb, AVStream *st, AVPacket *pkt,
data_ptr
=
pkt
->
data
;
data_ptr
=
pkt
->
data
;
end_ptr
=
pkt
->
data
+
length
;
end_ptr
=
pkt
->
data
+
length
;
buf_ptr
=
pkt
->
data
+
4
;
/* skip SMPTE 331M header */
buf_ptr
=
pkt
->
data
+
4
;
/* skip SMPTE 331M header */
for
(;
buf_ptr
+
st
->
codec
->
channels
*
4
<
end_ptr
;
)
{
for
(;
end_ptr
-
buf_ptr
>=
st
->
codec
->
channels
*
4
;
)
{
for
(
i
=
0
;
i
<
st
->
codec
->
channels
;
i
++
)
{
for
(
i
=
0
;
i
<
st
->
codec
->
channels
;
i
++
)
{
uint32_t
sample
=
bytestream_get_le32
(
&
buf_ptr
);
uint32_t
sample
=
bytestream_get_le32
(
&
buf_ptr
);
if
(
st
->
codec
->
bits_per_coded_sample
==
24
)
if
(
st
->
codec
->
bits_per_coded_sample
==
24
)
...
...
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