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
fea4dc05
Commit
fea4dc05
authored
Oct 26, 2016
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vc1: Return stream format information from parser
parent
0940b748
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
vc1_parser.c
libavcodec/vc1_parser.c
+8
-0
No files found.
libavcodec/vc1_parser.c
View file @
fea4dc05
...
...
@@ -108,6 +108,14 @@ static void vc1_extract_header(AVCodecParserContext *s, AVCodecContext *avctx,
break
;
}
s
->
format
=
vpc
->
v
.
chromaformat
==
1
?
AV_PIX_FMT_YUV420P
:
AV_PIX_FMT_NONE
;
if
(
avctx
->
width
&&
avctx
->
height
)
{
s
->
width
=
avctx
->
width
;
s
->
height
=
avctx
->
height
;
s
->
coded_width
=
FFALIGN
(
avctx
->
coded_width
,
16
);
s
->
coded_height
=
FFALIGN
(
avctx
->
coded_height
,
16
);
}
}
static
int
vc1_parse
(
AVCodecParserContext
*
s
,
...
...
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