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
a3c5aeff
Commit
a3c5aeff
authored
Jan 20, 2012
by
Hendrik Leppkes
Committed by
Michael Niedermayer
Mar 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxva2_vc1: fix decoding of BI frames
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2367b2a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dxva2_vc1.c
libavcodec/dxva2_vc1.c
+4
-4
No files found.
libavcodec/dxva2_vc1.c
View file @
a3c5aeff
...
...
@@ -42,11 +42,11 @@ static void fill_picture_parameters(AVCodecContext *avctx,
memset
(
pp
,
0
,
sizeof
(
*
pp
));
pp
->
wDecodedPictureIndex
=
pp
->
wDeblockedPictureIndex
=
ff_dxva2_get_surface_index
(
ctx
,
current_picture
);
if
(
s
->
pict_type
!=
AV_PICTURE_TYPE_I
)
if
(
s
->
pict_type
!=
AV_PICTURE_TYPE_I
&&
!
v
->
bi_type
)
pp
->
wForwardRefPictureIndex
=
ff_dxva2_get_surface_index
(
ctx
,
&
s
->
last_picture
);
else
pp
->
wForwardRefPictureIndex
=
0xffff
;
if
(
s
->
pict_type
==
AV_PICTURE_TYPE_B
)
if
(
s
->
pict_type
==
AV_PICTURE_TYPE_B
&&
!
v
->
bi_type
)
pp
->
wBackwardRefPictureIndex
=
ff_dxva2_get_surface_index
(
ctx
,
&
s
->
next_picture
);
else
pp
->
wBackwardRefPictureIndex
=
0xffff
;
...
...
@@ -69,8 +69,8 @@ static void fill_picture_parameters(AVCodecContext *avctx,
if
(
s
->
picture_structure
&
PICT_BOTTOM_FIELD
)
pp
->
bPicStructure
|=
0x02
;
pp
->
bSecondField
=
v
->
interlace
&&
v
->
fcm
!=
ILACE_FIELD
&&
!
s
->
first_field
;
pp
->
bPicIntra
=
s
->
pict_type
==
AV_PICTURE_TYPE_I
;
pp
->
bPicBackwardPrediction
=
s
->
pict_type
==
AV_PICTURE_TYPE_B
;
pp
->
bPicIntra
=
s
->
pict_type
==
AV_PICTURE_TYPE_I
||
v
->
bi_type
;
pp
->
bPicBackwardPrediction
=
s
->
pict_type
==
AV_PICTURE_TYPE_B
&&
!
v
->
bi_type
;
pp
->
bBidirectionalAveragingMode
=
(
1
<<
7
)
|
((
ctx
->
cfg
->
ConfigIntraResidUnsigned
!=
0
)
<<
6
)
|
((
ctx
->
cfg
->
ConfigResidDiffAccelerator
!=
0
)
<<
5
)
|
...
...
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