mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Return early if a HW accelerator is used.
Patch by Gwenole Beauchesne. Originally committed as revision 17635 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f06ce1ce89
commit
11647a9f8c
@ -621,6 +621,9 @@ void ff_er_add_slice(MpegEncContext *s, int startx, int starty, int endx, int en
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user