~ubuntu-branches/ubuntu/saucy/gst-libav1.0/saucy-proposed

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavcodec/dxva2.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-07-30 09:00:15 UTC
  • mfrom: (1.1.16) (7.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20130730090015-sc1ou2yssu7q5w4e
Tags: 1.1.3-1
* New upstream development snapshot:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.1.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
    struct dxva_context *ctx = avctx->hwaccel_context;
87
87
    unsigned               buffer_count = 0;
88
88
    DXVA2_DecodeBufferDesc buffer[4];
89
 
    DXVA2_DecodeExecuteParams exec;
 
89
    DXVA2_DecodeExecuteParams exec = { 0 };
90
90
    int      result;
91
91
 
92
92
    if (FAILED(IDirectXVideoDecoder_BeginFrame(ctx->decoder,
132
132
 
133
133
    assert(buffer_count == 1 + (qm_size > 0) + 2);
134
134
 
135
 
    memset(&exec, 0, sizeof(exec));
136
135
    exec.NumCompBuffers      = buffer_count;
137
136
    exec.pCompressedBuffers  = buffer;
138
137
    exec.pExtensionData      = NULL;
151
150
        ff_draw_horiz_band(s, 0, s->avctx->height);
152
151
    return result;
153
152
}
154