Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
x264
Commits
f851c923
Commit
f851c923
authored
Dec 02, 2009
by
Fiona Glaser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash in interlaced with >8 refs
Crash introduced in weightp.
parent
4aa33d65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
common/common.h
common/common.h
+1
-1
encoder/encoder.c
encoder/encoder.c
+1
-1
No files found.
common/common.h
View file @
f851c923
...
...
@@ -256,7 +256,7 @@ typedef struct
}
ref_pic_list_order
[
2
][
16
];
/* P-frame weighting */
x264_weight_t
weight
[
16
][
3
];
x264_weight_t
weight
[
32
][
3
];
int
i_mmco_remove_from_end
;
int
i_mmco_command_count
;
...
...
encoder/encoder.c
View file @
f851c923
...
...
@@ -1202,7 +1202,7 @@ static void x264_weighted_pred_init( x264_t *h )
// and duplicates of that frame.
h
->
fenc
->
i_lines_weighted
=
0
;
for
(
i_ref
=
0
;
i_ref
<
h
->
i_ref0
;
i_ref
++
)
for
(
i_ref
=
0
;
i_ref
<
(
h
->
i_ref0
<<
h
->
sh
.
b_mbaff
)
;
i_ref
++
)
for
(
i
=
0
;
i
<
3
;
i
++
)
h
->
sh
.
weight
[
i_ref
][
i
].
weightfn
=
NULL
;
...
...
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