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
4701f767
Commit
4701f767
authored
Jun 18, 2014
by
John Stebbins
Committed by
Michael Niedermayer
Jun 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/pgssubdec: split out flush_cache()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ca7f2a73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
pgssubdec.c
libavcodec/pgssubdec.c
+14
-10
No files found.
libavcodec/pgssubdec.c
View file @
4701f767
...
...
@@ -73,18 +73,10 @@ typedef struct PGSSubContext {
int
forced_subs_only
;
}
PGSSubContext
;
static
av_cold
int
init_decoder
(
AVCodecContext
*
avctx
)
static
void
flush_cache
(
AVCodecContext
*
avctx
)
{
avctx
->
pix_fmt
=
AV_PIX_FMT_PAL8
;
return
0
;
}
static
av_cold
int
close_decoder
(
AVCodecContext
*
avctx
)
{
uint16_t
picture
;
PGSSubContext
*
ctx
=
avctx
->
priv_data
;
uint16_t
picture
;
av_freep
(
&
ctx
->
presentation
.
objects
);
ctx
->
presentation
.
object_count
=
0
;
...
...
@@ -93,6 +85,18 @@ static av_cold int close_decoder(AVCodecContext *avctx)
av_freep
(
&
ctx
->
pictures
[
picture
].
rle
);
ctx
->
pictures
[
picture
].
rle_buffer_size
=
0
;
}
}
static
av_cold
int
init_decoder
(
AVCodecContext
*
avctx
)
{
avctx
->
pix_fmt
=
AV_PIX_FMT_PAL8
;
return
0
;
}
static
av_cold
int
close_decoder
(
AVCodecContext
*
avctx
)
{
flush_cache
(
avctx
);
return
0
;
}
...
...
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