Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
db975ff0
Commit
db975ff0
authored
Nov 12, 2023
by
Peter Ross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/lead: support unaligned blocks
Fixed ticket #10656.
parent
80131321
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
leaddec.c
libavcodec/leaddec.c
+4
-4
No files found.
libavcodec/leaddec.c
View file @
db975ff0
...
...
@@ -195,8 +195,8 @@ static int lead_decode_frame(AVCodecContext *avctx, AVFrame * frame,
init_get_bits8
(
&
gb
,
s
->
bitstream_buf
,
size
);
if
(
avctx
->
pix_fmt
==
AV_PIX_FMT_YUV420P
)
{
for
(
int
mb_y
=
0
;
mb_y
<
avctx
->
height
/
16
;
mb_y
++
)
for
(
int
mb_x
=
0
;
mb_x
<
avctx
->
width
/
16
;
mb_x
++
)
for
(
int
mb_y
=
0
;
mb_y
<
(
avctx
->
height
+
15
)
/
16
;
mb_y
++
)
for
(
int
mb_x
=
0
;
mb_x
<
(
avctx
->
width
+
15
)
/
16
;
mb_x
++
)
for
(
int
b
=
0
;
b
<
(
yuv20p_half
?
4
:
6
);
b
++
)
{
int
luma_block
=
yuv20p_half
?
2
:
4
;
const
VLCElem
*
dc_vlc
=
b
<
luma_block
?
luma_dc_vlc
:
chroma_dc_vlc
;
...
...
@@ -228,8 +228,8 @@ static int lead_decode_frame(AVCodecContext *avctx, AVFrame * frame,
}
}
else
{
for
(
int
f
=
0
;
f
<
fields
;
f
++
)
for
(
int
j
=
0
;
j
<
avctx
->
height
/
fields
/
8
;
j
++
)
for
(
int
i
=
0
;
i
<
avctx
->
width
/
8
;
i
++
)
for
(
int
j
=
0
;
j
<
(
avctx
->
height
+
7
)
/
fields
/
8
;
j
++
)
for
(
int
i
=
0
;
i
<
(
avctx
->
width
+
7
)
/
8
;
i
++
)
for
(
int
plane
=
0
;
plane
<
3
;
plane
++
)
{
const
VLCElem
*
dc_vlc
=
!
plane
?
luma_dc_vlc
:
chroma_dc_vlc
;
int
dc_bits
=
!
plane
?
LUMA_DC_BITS
:
CHROMA_DC_BITS
;
...
...
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