CDVDInputStreamFFmpeg::Read returns -1
#1
When reading a udp stream an input stream of type CDVDInputStreamFFmpeg is created. However, the Read function of this class always returns -1 and never appears to get called.

Can someone tell me where the data for a udp stream is read into memory?

int CDVDInputStreamFFmpeg::Read(uint8_t* buf, int buf_size)
{
return -1;
}
Reply
#2
inside ffmpeg. DVDInputStreamFFmpeg is just a dummy to satisfy the general interface, i.e.

inputstream -> demuxer -> decoders -> gpu|apu

with ffmpeg native inputs, this is shortcut as

demuxer -> decoders -> gpu|apu,

i.e. the demuxer handles its own reads.
Reply
#3
ironic_monkey

Thanks for the response.

Is there any function where I can access the data inside of ffmpeg? For example, if I want to check the sync byte in a transport stream?
Reply

Logout Mark Read Team Forum Stats Members Help
CDVDInputStreamFFmpeg::Read returns -10