On 26/07/17 02:27, Jun Zhao wrote: > V6: fix memory leak issue when get EAGAIN/EOF for avcodec_receive_frame. > V5: remove qsv/cuda in the example and Mark have test dxva2|d3d11va, > videotoolbox might work as well. > V4: fix potential memory leak issue base on Steven Liu's review. > V3: re-work to support the other hwaccels, rename from vaapi_dec.c to > hw_decode.c. > just test with vaapi, dxva2|d3d11va|videotoolbox might work as well. > V2: re-work with new hw decoding API. > > From dc36e9daf2e03b4f896a462f83ee38a4929a6fc2 Mon Sep 17 00:00:00 2001 > From: Jun Zhao <jun.z...@intel.com> > Date: Thu, 20 Jul 2017 00:58:56 -0400 > Subject: [PATCH V6] examples/hw_decode: Add a HWAccel decoding example. > > Add a HWAccel decoding example. > > Test with vaapi|dxva2|d3d11va (Mark help to test dxva2|d3d11va), > videotoolbox might work as well. > > Signed-off-by: Liu, Kaixuan <kaixuan....@intel.com> > Signed-off-by: Jun Zhao <jun.z...@intel.com> > --- > doc/examples/hw_decode.c | 266 > +++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 266 insertions(+) > create mode 100644 doc/examples/hw_decode.c
LGTM, applied with minor fixups: * I tested VDPAU and it works nicely on AMD/Mesa, so I added it to the commit and usage messages. * I also added the trivial build system support so it gets built with the other examples (didn't seem much point in going through another iteration for that). Thanks, - Mark _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel