[FFmpeg-devel] [PATCH 3/3] lavd: add opengl device
Lukasz M
lukasz.m.luki at gmail.com
Mon Jan 13 13:17:18 CET 2014
On 13 January 2014 02:41, Timothy Gu <timothygu99 at gmail.com> wrote:
> On Jan 12, 2014 4:42 PM, "Lukasz Marek" <lukasz.m.luki at gmail.com> wrote:
> >
> > It can render to OpenGL context provided by application or into SDL
> window
> >
> > Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>
> > ---
> > Changelog | 1 +
> > configure | 9 +
> > doc/outdevs.texi | 31 ++
> > libavdevice/Makefile | 1 +
> > libavdevice/alldevices.c | 1 +
> > libavdevice/opengl_enc.c | 1060
> ++++++++++++++++++++++++++++++++++++++
> > libavdevice/opengl_enc_shaders.h | 158 ++++++
> > libavdevice/version.h | 4 +-
> > 8 files changed, 1263 insertions(+), 2 deletions(-)
> > create mode 100644 libavdevice/opengl_enc.c
> > create mode 100644 libavdevice/opengl_enc_shaders.h
>
> There are return -1;'s everywhere. Try use a specific AVERROR.
>
Most of errors are OpenGL fails. AVERROR_EXTERNAL is returned from
write_header.
I can change the return value in write_packet too.
More information about the ffmpeg-devel
mailing list