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
7f0a7e3e
Commit
7f0a7e3e
authored
Mar 10, 2020
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo: drop an unnecessary function parameter
It is always 0.
parent
2e53b7ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mpegvideo.c
libavcodec/mpegvideo.c
+5
-5
No files found.
libavcodec/mpegvideo.c
View file @
7f0a7e3e
...
...
@@ -346,9 +346,9 @@ av_cold void ff_mpv_idct_init(MpegEncContext *s)
ff_init_scantable
(
s
->
idsp
.
idct_permutation
,
&
s
->
intra_v_scantable
,
ff_alternate_vertical_scan
);
}
static
int
alloc_picture
(
MpegEncContext
*
s
,
Picture
*
pic
,
int
shared
)
static
int
alloc_picture
(
MpegEncContext
*
s
,
Picture
*
pic
)
{
return
ff_alloc_picture
(
s
->
avctx
,
pic
,
&
s
->
me
,
&
s
->
sc
,
shared
,
0
,
return
ff_alloc_picture
(
s
->
avctx
,
pic
,
&
s
->
me
,
&
s
->
sc
,
0
,
0
,
s
->
chroma_x_shift
,
s
->
chroma_y_shift
,
s
->
out_format
,
s
->
mb_stride
,
s
->
mb_width
,
s
->
mb_height
,
s
->
b8_stride
,
&
s
->
linesize
,
&
s
->
uvlinesize
);
...
...
@@ -1259,7 +1259,7 @@ int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx)
pic
->
f
->
coded_picture_number
=
s
->
coded_picture_number
++
;
if
(
alloc_picture
(
s
,
pic
,
0
)
<
0
)
if
(
alloc_picture
(
s
,
pic
)
<
0
)
return
-
1
;
s
->
current_picture_ptr
=
pic
;
...
...
@@ -1320,7 +1320,7 @@ int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx)
s
->
last_picture_ptr
->
f
->
key_frame
=
0
;
s
->
last_picture_ptr
->
f
->
pict_type
=
AV_PICTURE_TYPE_P
;
if
(
alloc_picture
(
s
,
s
->
last_picture_ptr
,
0
)
<
0
)
{
if
(
alloc_picture
(
s
,
s
->
last_picture_ptr
)
<
0
)
{
s
->
last_picture_ptr
=
NULL
;
return
-
1
;
}
...
...
@@ -1361,7 +1361,7 @@ int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx)
s
->
next_picture_ptr
->
f
->
key_frame
=
0
;
s
->
next_picture_ptr
->
f
->
pict_type
=
AV_PICTURE_TYPE_P
;
if
(
alloc_picture
(
s
,
s
->
next_picture_ptr
,
0
)
<
0
)
{
if
(
alloc_picture
(
s
,
s
->
next_picture_ptr
)
<
0
)
{
s
->
next_picture_ptr
=
NULL
;
return
-
1
;
}
...
...
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