Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
5024f0b6
Commit
5024f0b6
authored
Oct 30, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: pass input_stream pointer to decoder_data()
decoder_data() uses wait times to let the input stream continue its transfer.
parent
b15c4cde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ffmpeg_plugin.c
src/decoder/ffmpeg_plugin.c
+5
-3
No files found.
src/decoder/ffmpeg_plugin.c
View file @
5024f0b6
...
...
@@ -214,7 +214,8 @@ ffmpeg_try_decode(struct input_stream *input)
}
static
enum
decoder_command
ffmpeg_send_packet
(
struct
decoder
*
decoder
,
const
AVPacket
*
packet
,
ffmpeg_send_packet
(
struct
decoder
*
decoder
,
struct
input_stream
*
is
,
const
AVPacket
*
packet
,
AVCodecContext
*
codec_context
,
const
AVRational
*
time_base
)
{
...
...
@@ -238,7 +239,7 @@ ffmpeg_send_packet(struct decoder *decoder, const AVPacket *packet,
assert
(
audio_size
>=
0
);
return
decoder_data
(
decoder
,
NULL
,
1
,
return
decoder_data
(
decoder
,
is
,
is
->
seekable
,
audio_buf
,
audio_size
,
position
,
codec_context
->
bit_rate
/
1000
,
NULL
);
...
...
@@ -278,7 +279,8 @@ ffmpeg_decode_internal(BasePtrs *base)
break
;
if
(
packet
.
stream_index
==
base
->
audioStream
)
cmd
=
ffmpeg_send_packet
(
decoder
,
&
packet
,
aCodecCtx
,
cmd
=
ffmpeg_send_packet
(
decoder
,
base
->
input
,
&
packet
,
aCodecCtx
,
&
pFormatCtx
->
streams
[
base
->
audioStream
]
->
time_base
);
else
cmd
=
decoder_get_command
(
decoder
);
...
...
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