Mercurial > libavcodec.hg
comparison mpegvideo_xvmc.c @ 8888:5b7c6ebb4a36 libavcodec
Return error instead of triggering assert.
author | iive |
---|---|
date | Sat, 14 Feb 2009 22:06:00 +0000 |
parents | c4f2086d74f8 |
children | b4838c71d52a |
comparison
equal
deleted
inserted
replaced
8887:c4f2086d74f8 | 8888:5b7c6ebb4a36 |
---|---|
78 | 78 |
79 if (render->filled_mv_blocks_num) { | 79 if (render->filled_mv_blocks_num) { |
80 av_log(avctx, AV_LOG_ERROR, | 80 av_log(avctx, AV_LOG_ERROR, |
81 "Rendering surface contains %i unprocessed blocks\n", | 81 "Rendering surface contains %i unprocessed blocks\n", |
82 render->filled_mv_blocks_num); | 82 render->filled_mv_blocks_num); |
83 assert(0); | 83 return -1; |
84 } | 84 } |
85 | 85 |
86 render->p_future_surface = NULL; | 86 render->p_future_surface = NULL; |
87 render->p_past_surface = NULL; | 87 render->p_past_surface = NULL; |
88 | 88 |