summaryrefslogtreecommitdiff
path: root/libavcodec/vdpauvideo.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-01-10 02:45:07 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-01-10 02:45:07 +0000
commit7fd3c09e0f6560b72e2340f100886352eb9fc15d (patch)
tree462ebd217057b3d2c8cbc229a4d9ccab2fe9254b /libavcodec/vdpauvideo.c
parent1a1078faa4217c32394a931865ed4b7a3cce634e (diff)
Move vdpau_h264_set_reference_frames() call from vdpauvideo.c into h264.c.
Originally committed as revision 16513 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vdpauvideo.c')
-rw-r--r--libavcodec/vdpauvideo.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/vdpauvideo.c b/libavcodec/vdpauvideo.c
index 8b42823486..c1405eb6da 100644
--- a/libavcodec/vdpauvideo.c
+++ b/libavcodec/vdpauvideo.c
@@ -37,7 +37,7 @@
* @{
*/
-static void vdpau_h264_set_reference_frames(H264Context *h)
+void ff_vdpau_h264_set_reference_frames(H264Context *h)
{
MpegEncContext * s = &h->s;
struct vdpau_render_state * render, * render_ref;
@@ -114,9 +114,6 @@ void ff_vdpau_h264_add_data_chunk(H264Context *h, const uint8_t *buf, int buf_si
render = (struct vdpau_render_state*)s->current_picture_ptr->data[0];
assert(render);
- if (!render->bitstream_buffers_used)
- vdpau_h264_set_reference_frames(h);
-
render->bitstream_buffers= av_fast_realloc(
render->bitstream_buffers,
&render->bitstream_buffers_allocated,