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
2d3601b5
Commit
2d3601b5
authored
Sep 14, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qprd + mpeg2 segfault fix
Originally committed as revision 3461 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
0bae10cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mpegvideo.c
libavcodec/mpegvideo.c
+2
-2
No files found.
libavcodec/mpegvideo.c
View file @
2d3601b5
...
...
@@ -4408,7 +4408,7 @@ static int encode_thread(AVCodecContext *c, void *arg){
if
(
qp
<
s
->
avctx
->
qmin
||
qp
>
s
->
avctx
->
qmax
)
break
;
backup_s
.
dquant
=
dquant
;
if
(
s
->
mb_intra
){
if
(
s
->
mb_intra
&&
s
->
dc_val
[
0
]
){
for
(
i
=
0
;
i
<
6
;
i
++
){
dc
[
i
]
=
s
->
dc_val
[
0
][
s
->
block_index
[
i
]
];
memcpy
(
ac
[
i
],
s
->
ac_val
[
0
][
s
->
block_index
[
i
]],
sizeof
(
DCTELEM
)
*
16
);
...
...
@@ -4418,7 +4418,7 @@ static int encode_thread(AVCodecContext *c, void *arg){
encode_mb_hq
(
s
,
&
backup_s
,
&
best_s
,
CANDIDATE_MB_TYPE_INTER
/* wrong but unused */
,
pb
,
pb2
,
tex_pb
,
&
dmin
,
&
next_block
,
s
->
mv
[
mvdir
][
0
][
0
],
s
->
mv
[
mvdir
][
0
][
1
]);
if
(
best_s
.
qscale
!=
qp
){
if
(
s
->
mb_intra
){
if
(
s
->
mb_intra
&&
s
->
dc_val
[
0
]
){
for
(
i
=
0
;
i
<
6
;
i
++
){
s
->
dc_val
[
0
][
s
->
block_index
[
i
]
]
=
dc
[
i
];
memcpy
(
s
->
ac_val
[
0
][
s
->
block_index
[
i
]],
ac
[
i
],
sizeof
(
DCTELEM
)
*
16
);
...
...
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