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
ef73ccc2
Commit
ef73ccc2
authored
Aug 07, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/h264_refs: do not use invalid mmco values in case of error
Change one relevant assert to av_assert0 while here.
parent
428b4aac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
h264_refs.c
libavcodec/h264_refs.c
+3
-1
No files found.
libavcodec/h264_refs.c
View file @
ef73ccc2
...
...
@@ -732,7 +732,7 @@ int ff_h264_execute_ref_pic_marking(H264Context *h)
for
(
j
=
0
;
j
<
MAX_DELAYED_PIC_COUNT
;
j
++
)
h
->
last_pocs
[
j
]
=
INT_MIN
;
break
;
default:
a
ssert
(
0
);
default:
a
v_assert0
(
0
);
}
}
...
...
@@ -868,6 +868,7 @@ int ff_h264_decode_ref_pic_marking(H264SliceContext *sl, GetBitContext *gb,
av_log
(
logctx
,
AV_LOG_ERROR
,
"illegal long ref in memory management control "
"operation %d
\n
"
,
opcode
);
sl
->
nb_mmco
=
i
;
return
-
1
;
}
mmco
[
i
].
long_arg
=
long_arg
;
...
...
@@ -877,6 +878,7 @@ int ff_h264_decode_ref_pic_marking(H264SliceContext *sl, GetBitContext *gb,
av_log
(
logctx
,
AV_LOG_ERROR
,
"illegal memory management control operation %d
\n
"
,
opcode
);
sl
->
nb_mmco
=
i
;
return
-
1
;
}
if
(
opcode
==
MMCO_END
)
...
...
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