Make sure all pointers are valid in the vdpau code.
From: Erik Hovland <erik@hovland.org>
---
mythtv/libs/libavcodec/vdpauvideo.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/mythtv/libs/libavcodec/vdpauvideo.c b/mythtv/libs/libavcodec/vdpauvideo.c
index b9abfc3..d9b9f71 100644
a
|
b
|
int VDPAU_mpeg_field_start(MpegEncContext *s)
|
111 | 111 | if (last->magic != MP_VDPAU_RENDER_MAGIC) { |
112 | 112 | return -1; |
113 | 113 | } |
114 | | if (last == NULL) { // FIXME: Does this test make sense? |
115 | | last = render; // predict second field from the first |
116 | | } |
117 | 114 | render->info.mpeg.forward_reference = last->surface; |
118 | 115 | return 0; |
119 | 116 | } |
… |
… |
int VDPAU_vc1_decode_picture(MpegEncContext *s, AVCodecContext *avctx, VC1Contex
|
400 | 397 | if (last->magic != MP_VDPAU_RENDER_MAGIC) { |
401 | 398 | return -1; |
402 | 399 | } |
403 | | if (last == NULL) { // FIXME: Does this test make sense? |
404 | | last = render; // predict second field from the first |
405 | | } |
406 | 400 | render->info.vc1.forward_reference = last->surface; |
407 | 401 | break; |
408 | 402 | default: |