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/mythtv/libs/libavcodec/vdpauvideo.c
+++ b/mythtv/libs/libavcodec/vdpauvideo.c
@@ -111,9 +111,6 @@ int VDPAU_mpeg_field_start(MpegEncContext *s)
         if (last->magic != MP_VDPAU_RENDER_MAGIC) {
             return -1;
         }
-        if (last == NULL) { // FIXME: Does this test make sense?
-            last = render; // predict second field from the first
-        }
         render->info.mpeg.forward_reference = last->surface;
         return 0;
     }
@@ -400,9 +397,6 @@ int VDPAU_vc1_decode_picture(MpegEncContext *s, AVCodecContext *avctx, VC1Contex
         if (last->magic != MP_VDPAU_RENDER_MAGIC) {
             return -1;
         }
-        if (last == NULL) { // FIXME: Does this test make sense?
-            last = render; // predict second field from the first
-        }
         render->info.vc1.forward_reference = last->surface;
         break;
     default:
