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
73b9f31c
Commit
73b9f31c
authored
May 19, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mjpeg_decode_com: remove redundant len checks
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2f75dcdc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mjpegdec.c
libavcodec/mjpegdec.c
+3
-3
No files found.
libavcodec/mjpegdec.c
View file @
73b9f31c
...
...
@@ -1501,14 +1501,14 @@ static int mjpeg_decode_com(MJpegDecodeContext *s)
av_log
(
s
->
avctx
,
AV_LOG_INFO
,
"comment: '%s'
\n
"
,
cbuf
);
/* buggy avid, it puts EOI only at every 10th frame */
if
(
len
>
3
&&
(
!
strncmp
(
cbuf
,
"AVID"
,
4
)
))
{
if
(
!
strncmp
(
cbuf
,
"AVID"
,
4
))
{
s
->
buggy_avid
=
1
;
if
(
len
>
14
&&
cbuf
[
12
]
==
1
)
/* 1 - NTSC, 2 - PAL */
s
->
interlace_polarity
=
1
;
}
else
if
(
!
strcmp
(
cbuf
,
"CS=ITU601"
))
s
->
cs_itu601
=
1
;
else
if
((
len
>
31
&&
!
strncmp
(
cbuf
,
"Intel(R) JPEG Library, version 1"
,
32
))
||
(
len
>
19
&&
!
strncmp
(
cbuf
,
"Metasoft MJPEG Codec"
,
20
)))
else
if
((
!
strncmp
(
cbuf
,
"Intel(R) JPEG Library, version 1"
,
32
))
||
(
!
strncmp
(
cbuf
,
"Metasoft MJPEG Codec"
,
20
)))
s
->
flipped
=
1
;
av_free
(
cbuf
);
...
...
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