Mercurial > libavcodec.hg
changeset 9062:2767eb8c227d libavcodec
Return early if a HW accelerator is used.
Patch by Gwenole Beauchesne.
author | benoit |
---|---|
date | Fri, 27 Feb 2009 08:16:22 +0000 |
parents | d041d818f35c |
children | 390f5a9721d2 |
files | error_resilience.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/error_resilience.c Fri Feb 27 08:12:41 2009 +0000 +++ b/error_resilience.c Fri Feb 27 08:16:22 2009 +0000 @@ -621,6 +621,9 @@ const int end_xy = s->mb_index2xy[end_i]; int mask= -1; + if(s->avctx->hwaccel) + return; + if(start_i > end_i || start_xy > end_xy){ av_log(s->avctx, AV_LOG_ERROR, "internal error, slice end before start\n"); return;