1 --- gst-libs/gst/vaapi/gstvaapidecoder_ffmpeg.c 2011-07-08 01:18:06.000000000 +0300
2 +++ gst-libs/gst/vaapi/gstvaapidecoder_ffmpeg.c.new 2011-07-08 01:53:13.170179549 +0300
6 * gstvaapidecoder_ffmpeg.c - FFmpeg-based decoder
8 * gstreamer-vaapi (C) 2010-2011 Splitted-Desktop Systems
10 int bytes_read, got_picture = 0;
12 GST_VAAPI_DISPLAY_LOCK(display);
13 - bytes_read = avcodec_decode_video(
16 + av_init_packet(&packet);
18 + packet.size = buf_size;
21 + bytes_read = avcodec_decode_video2(
28 GST_VAAPI_DISPLAY_UNLOCK(display);
34 - int parsed_size = av_parser_parse(
35 + int parsed_size = av_parser_parse2(
38 &outbuf, &outbuf_size,
39 GST_BUFFER_DATA(buffer) + inbuf_ofs, inbuf_size,
41 + inbuf_ts, inbuf_ts, AV_NOPTS_VALUE
43 got_frame = outbuf && outbuf_size > 0;