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
260c12cd
Commit
260c12cd
authored
Mar 09, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/mjpegdec: Set sar for multiscope videos.
Fixes decoding of the files from ticket #4535 visually.
parent
a6a52ef2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mjpegdec.c
libavcodec/mjpegdec.c
+3
-1
No files found.
libavcodec/mjpegdec.c
View file @
260c12cd
...
...
@@ -1878,8 +1878,10 @@ static int mjpeg_decode_com(MJpegDecodeContext *s)
else
if
((
!
strncmp
(
cbuf
,
"Intel(R) JPEG Library, version 1"
,
32
)
&&
s
->
avctx
->
codec_tag
)
||
(
!
strncmp
(
cbuf
,
"Metasoft MJPEG Codec"
,
20
)))
s
->
flipped
=
1
;
else
if
(
!
strcmp
(
cbuf
,
"MULTISCOPE II"
))
else
if
(
!
strcmp
(
cbuf
,
"MULTISCOPE II"
))
{
s
->
avctx
->
sample_aspect_ratio
=
(
AVRational
)
{
1
,
2
};
s
->
multiscope
=
2
;
}
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