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
fa80967a
Commit
fa80967a
authored
Mar 14, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg1/2: export qp table
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ff9adf57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
mpeg12.c
libavcodec/mpeg12.c
+2
-0
No files found.
libavcodec/mpeg12.c
View file @
fa80967a
...
@@ -1990,6 +1990,7 @@ static int slice_end(AVCodecContext *avctx, AVFrame *pict)
...
@@ -1990,6 +1990,7 @@ static int slice_end(AVCodecContext *avctx, AVFrame *pict)
if
(
ret
<
0
)
if
(
ret
<
0
)
return
ret
;
return
ret
;
ff_print_debug_info
(
s
,
s
->
current_picture_ptr
,
pict
);
ff_print_debug_info
(
s
,
s
->
current_picture_ptr
,
pict
);
av_frame_set_qp_table
(
pict
,
av_buffer_ref
(
s
->
current_picture_ptr
->
qscale_table_buf
),
s
->
mb_stride
,
FF_QSCALE_TYPE_MPEG2
);
}
else
{
}
else
{
if
(
avctx
->
active_thread_type
&
FF_THREAD_FRAME
)
if
(
avctx
->
active_thread_type
&
FF_THREAD_FRAME
)
s
->
picture_number
++
;
s
->
picture_number
++
;
...
@@ -2000,6 +2001,7 @@ static int slice_end(AVCodecContext *avctx, AVFrame *pict)
...
@@ -2000,6 +2001,7 @@ static int slice_end(AVCodecContext *avctx, AVFrame *pict)
if
(
ret
<
0
)
if
(
ret
<
0
)
return
ret
;
return
ret
;
ff_print_debug_info
(
s
,
s
->
last_picture_ptr
,
pict
);
ff_print_debug_info
(
s
,
s
->
last_picture_ptr
,
pict
);
av_frame_set_qp_table
(
pict
,
av_buffer_ref
(
s
->
last_picture_ptr
->
qscale_table_buf
),
s
->
mb_stride
,
FF_QSCALE_TYPE_MPEG2
);
}
}
}
}
...
...
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