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
8b152c35
Commit
8b152c35
authored
Mar 31, 2015
by
Rainer Hochecker
Committed by
Michael Niedermayer
Mar 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: avoid unnecessary calls to get_format
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0c9abf21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
h264_slice.c
libavcodec/h264_slice.c
+2
-1
No files found.
libavcodec/h264_slice.c
View file @
8b152c35
...
...
@@ -1325,7 +1325,8 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
||
h
->
mb_width
!=
h
->
sps
.
mb_width
||
h
->
mb_height
!=
h
->
sps
.
mb_height
*
(
2
-
h
->
sps
.
frame_mbs_only_flag
)
));
if
(
non_j_pixfmt
(
h
->
avctx
->
pix_fmt
)
!=
non_j_pixfmt
(
get_pixel_format
(
h
,
0
)))
if
(
h
->
avctx
->
pix_fmt
==
AV_PIX_FMT_NONE
||
(
non_j_pixfmt
(
h
->
avctx
->
pix_fmt
)
!=
non_j_pixfmt
(
get_pixel_format
(
h
,
0
))))
must_reinit
=
1
;
if
(
first_slice
&&
av_cmp_q
(
h
->
sps
.
sar
,
h
->
avctx
->
sample_aspect_ratio
))
...
...
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