Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
662b0e8e
Commit
662b0e8e
authored
Feb 23, 2017
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codec: faad: flush buffer on decoder flush
parent
21a746d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
modules/codec/faad.c
modules/codec/faad.c
+13
-12
No files found.
modules/codec/faad.c
View file @
662b0e8e
...
...
@@ -197,16 +197,6 @@ static int Open( vlc_object_t *p_this )
return
VLC_SUCCESS
;
}
/*****************************************************************************
* Flush:
*****************************************************************************/
static
void
Flush
(
decoder_t
*
p_dec
)
{
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
date_Set
(
&
p_sys
->
date
,
0
);
}
/*****************************************************************************
* FlushBuffer:
*****************************************************************************/
...
...
@@ -234,6 +224,17 @@ static void FlushBuffer( decoder_sys_t *p_sys, size_t i_used )
}
}
/*****************************************************************************
* Flush:
*****************************************************************************/
static
void
Flush
(
decoder_t
*
p_dec
)
{
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
date_Set
(
&
p_sys
->
date
,
VLC_TS_INVALID
);
FlushBuffer
(
p_sys
,
SIZE_MAX
);
}
/*****************************************************************************
* DecodeBlock:
*****************************************************************************/
...
...
@@ -400,8 +401,8 @@ static int DecodeBlock( decoder_t *p_dec, block_t *p_block )
}
}
/*
Flush
the buffer */
FlushBuffer
(
p_sys
,
SIZE_MAX
);
Flush
(
p_dec
);
return
VLCDEC_SUCCESS
;
}
...
...
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