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
e2d336cf
Commit
e2d336cf
authored
Jan 03, 2017
by
Matthieu Bouron
Committed by
Matthieu Bouron
Jan 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/framepool: re-indent after previous commit
parent
eb336817
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
27 deletions
+27
-27
framepool.c
libavfilter/framepool.c
+27
-27
No files found.
libavfilter/framepool.c
View file @
e2d336cf
...
...
@@ -205,41 +205,41 @@ AVFrame *ff_frame_pool_get(FFFramePool *pool)
switch
(
pool
->
type
)
{
case
AVMEDIA_TYPE_VIDEO
:
desc
=
av_pix_fmt_desc_get
(
pool
->
format
);
if
(
!
desc
)
{
goto
fail
;
}
desc
=
av_pix_fmt_desc_get
(
pool
->
format
);
if
(
!
desc
)
{
goto
fail
;
}
frame
->
width
=
pool
->
width
;
frame
->
height
=
pool
->
height
;
frame
->
format
=
pool
->
format
;
frame
->
width
=
pool
->
width
;
frame
->
height
=
pool
->
height
;
frame
->
format
=
pool
->
format
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
frame
->
linesize
[
i
]
=
pool
->
linesize
[
i
];
if
(
!
pool
->
pools
[
i
])
break
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
frame
->
linesize
[
i
]
=
pool
->
linesize
[
i
];
if
(
!
pool
->
pools
[
i
])
break
;
frame
->
buf
[
i
]
=
av_buffer_pool_get
(
pool
->
pools
[
i
]);
if
(
!
frame
->
buf
[
i
])
{
goto
fail
;
}
frame
->
buf
[
i
]
=
av_buffer_pool_get
(
pool
->
pools
[
i
]);
if
(
!
frame
->
buf
[
i
])
{
goto
fail
;
}
frame
->
data
[
i
]
=
frame
->
buf
[
i
]
->
data
;
}
frame
->
data
[
i
]
=
frame
->
buf
[
i
]
->
data
;
}
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG_PAL
||
desc
->
flags
&
AV_PIX_FMT_FLAG_PSEUDOPAL
)
{
enum
AVPixelFormat
format
=
pool
->
format
==
AV_PIX_FMT_PAL8
?
AV_PIX_FMT_BGR8
:
pool
->
format
;
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG_PAL
||
desc
->
flags
&
AV_PIX_FMT_FLAG_PSEUDOPAL
)
{
enum
AVPixelFormat
format
=
pool
->
format
==
AV_PIX_FMT_PAL8
?
AV_PIX_FMT_BGR8
:
pool
->
format
;
av_assert0
(
frame
->
data
[
1
]
!=
NULL
);
if
(
avpriv_set_systematic_pal2
((
uint32_t
*
)
frame
->
data
[
1
],
format
)
<
0
)
{
goto
fail
;
av_assert0
(
frame
->
data
[
1
]
!=
NULL
);
if
(
avpriv_set_systematic_pal2
((
uint32_t
*
)
frame
->
data
[
1
],
format
)
<
0
)
{
goto
fail
;
}
}
}
frame
->
extended_data
=
frame
->
data
;
break
;
frame
->
extended_data
=
frame
->
data
;
break
;
case
AVMEDIA_TYPE_AUDIO
:
frame
->
nb_samples
=
pool
->
nb_samples
;
av_frame_set_channels
(
frame
,
pool
->
channels
);
...
...
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