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
8c1f5fb0
Commit
8c1f5fb0
authored
Oct 30, 2014
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: remove flushed state from decoder context
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
d25d9296
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
ffplay.c
ffplay.c
+0
-4
No files found.
ffplay.c
View file @
8c1f5fb0
...
...
@@ -185,7 +185,6 @@ typedef struct Decoder {
AVCodecContext
*
avctx
;
int
pkt_serial
;
int
finished
;
int
flushed
;
int
packet_pending
;
SDL_cond
*
empty_queue_cond
;
int64_t
start_pts
;
...
...
@@ -548,8 +547,6 @@ static void decoder_init(Decoder *d, AVCodecContext *avctx, PacketQueue *queue,
static
int
decoder_decode_frame
(
Decoder
*
d
,
AVFrame
*
frame
,
AVSubtitle
*
sub
)
{
int
got_frame
=
0
;
d
->
flushed
=
0
;
do
{
int
ret
=
-
1
;
...
...
@@ -566,7 +563,6 @@ static int decoder_decode_frame(Decoder *d, AVFrame *frame, AVSubtitle *sub) {
if
(
pkt
.
data
==
flush_pkt
.
data
)
{
avcodec_flush_buffers
(
d
->
avctx
);
d
->
finished
=
0
;
d
->
flushed
=
1
;
d
->
next_pts
=
d
->
start_pts
;
d
->
next_pts_tb
=
d
->
start_pts_tb
;
}
...
...
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