comparison vdpau.c @ 8968:b123ed268953 libavcodec

Instead of crashing, return from ff_vdpau_mpeg_picture_complete() if get_buffer() failed. Patch by Reimar
author cehoyos
date Wed, 18 Feb 2009 09:21:29 +0000
parents 07b5c9735954
children b54938038170
comparison
equal deleted inserted replaced
8967:f0abc5f9e726 8968:b123ed268953
182 int buf_size, int slice_count) 182 int buf_size, int slice_count)
183 { 183 {
184 struct vdpau_render_state *render, *last, *next; 184 struct vdpau_render_state *render, *last, *next;
185 int i; 185 int i;
186 186
187 if (!s->current_picture_ptr) return;
188
187 render = (struct vdpau_render_state *)s->current_picture_ptr->data[0]; 189 render = (struct vdpau_render_state *)s->current_picture_ptr->data[0];
188 assert(render); 190 assert(render);
189 191
190 /* fill VdpPictureInfoMPEG1Or2 struct */ 192 /* fill VdpPictureInfoMPEG1Or2 struct */
191 render->info.mpeg.picture_structure = s->picture_structure; 193 render->info.mpeg.picture_structure = s->picture_structure;