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
3021d1be
Commit
3021d1be
authored
Dec 12, 2013
by
Hendrik Leppkes
Committed by
Michael Niedermayer
Jan 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxva2_vc1: set bfraction in slice info according to spec
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
8abdf46b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dxva2_vc1.c
libavcodec/dxva2_vc1.c
+1
-1
No files found.
libavcodec/dxva2_vc1.c
View file @
3021d1be
...
@@ -148,7 +148,7 @@ static void fill_slice(AVCodecContext *avctx, DXVA_SliceInfo *slice,
...
@@ -148,7 +148,7 @@ static void fill_slice(AVCodecContext *avctx, DXVA_SliceInfo *slice,
slice
->
dwSliceBitsInBuffer
=
8
*
size
;
slice
->
dwSliceBitsInBuffer
=
8
*
size
;
slice
->
dwSliceDataLocation
=
position
;
slice
->
dwSliceDataLocation
=
position
;
slice
->
bStartCodeBitOffset
=
0
;
slice
->
bStartCodeBitOffset
=
0
;
slice
->
bReservedBits
=
0
;
slice
->
bReservedBits
=
(
s
->
pict_type
==
AV_PICTURE_TYPE_B
&&
!
v
->
bi_type
)
?
v
->
bfraction_lut_index
+
9
:
0
;
slice
->
wMBbitOffset
=
get_bits_count
(
&
s
->
gb
);
slice
->
wMBbitOffset
=
get_bits_count
(
&
s
->
gb
);
slice
->
wNumberMBsInSlice
=
s
->
mb_width
*
s
->
mb_height
;
/* XXX We assume 1 slice */
slice
->
wNumberMBsInSlice
=
s
->
mb_width
*
s
->
mb_height
;
/* XXX We assume 1 slice */
slice
->
wQuantizerScaleCode
=
v
->
pq
;
slice
->
wQuantizerScaleCode
=
v
->
pq
;
...
...
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