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
ca4dd381
Commit
ca4dd381
authored
Dec 19, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: use must_reinit to simplify code
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
af0fafcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
h264.c
libavcodec/h264.c
+2
-4
No files found.
libavcodec/h264.c
View file @
ca4dd381
...
...
@@ -2781,11 +2781,9 @@ static int decode_slice_header(H264Context *h, H264Context *h0)
s
->
avctx
->
pix_fmt
=
pix_fmt
;
if
(
s
->
context_initialized
&&
(
s
->
width
!=
s
->
avctx
->
coded_width
||
s
->
height
!=
s
->
avctx
->
coded_height
||
pix_fmt
!=
s
->
avctx
->
pix_fmt
||
(
needs_reinit
||
av_cmp_q
(
h
->
sps
.
sar
,
s
->
avctx
->
sample_aspect_ratio
)
))
{
must_reinit
))
{
if
(
h
!=
h0
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"changing width/height on "
...
...
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