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
030d84fa
Commit
030d84fa
authored
Oct 26, 2016
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qsvdec: Pass field order information to libmfx
The VC-1 decoder fails to initialise if this is not set.
parent
cd1047f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
qsvdec.c
libavcodec/qsvdec.c
+16
-0
No files found.
libavcodec/qsvdec.c
View file @
030d84fa
...
...
@@ -155,6 +155,21 @@ static int qsv_decode_init(AVCodecContext *avctx, QSVContext *q)
param
.
mfx
.
FrameInfo
.
Height
=
frame_height
;
param
.
mfx
.
FrameInfo
.
ChromaFormat
=
MFX_CHROMAFORMAT_YUV420
;
switch
(
avctx
->
field_order
)
{
case
AV_FIELD_PROGRESSIVE
:
param
.
mfx
.
FrameInfo
.
PicStruct
=
MFX_PICSTRUCT_PROGRESSIVE
;
break
;
case
AV_FIELD_TT
:
param
.
mfx
.
FrameInfo
.
PicStruct
=
MFX_PICSTRUCT_FIELD_TFF
;
break
;
case
AV_FIELD_BB
:
param
.
mfx
.
FrameInfo
.
PicStruct
=
MFX_PICSTRUCT_FIELD_BFF
;
break
;
default:
param
.
mfx
.
FrameInfo
.
PicStruct
=
MFX_PICSTRUCT_UNKNOWN
;
break
;
}
param
.
IOPattern
=
q
->
iopattern
;
param
.
AsyncDepth
=
q
->
async_depth
;
param
.
ExtParam
=
q
->
ext_buffers
;
...
...
@@ -485,6 +500,7 @@ int ff_qsv_process_data(AVCodecContext *avctx, QSVContext *q,
avctx
->
height
=
q
->
parser
->
height
;
avctx
->
coded_width
=
q
->
parser
->
coded_width
;
avctx
->
coded_height
=
q
->
parser
->
coded_height
;
avctx
->
field_order
=
q
->
parser
->
field_order
;
avctx
->
level
=
q
->
avctx_internal
->
level
;
avctx
->
profile
=
q
->
avctx_internal
->
profile
;
...
...
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