mirror of https://git.ffmpeg.org/ffmpeg.git
Merge commit 'b66382101cff33e2ce66500327a90d0a105eedeb'
* commit 'b66382101cff33e2ce66500327a90d0a105eedeb':
dxva2: Increase maximum number of slices for mpeg2
See: bceeccc648
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
b7c1f6f9cc
|
@ -20,6 +20,7 @@
|
|||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "libavutil/log.h"
|
||||
#include "dxva2_internal.h"
|
||||
|
||||
#define MAX_SLICES 1024
|
||||
|
@ -232,9 +233,11 @@ static int dxva2_mpeg2_decode_slice(AVCodecContext *avctx,
|
|||
s->current_picture_ptr->hwaccel_picture_private;
|
||||
unsigned position;
|
||||
|
||||
if (ctx_pic->slice_count >= MAX_SLICES)
|
||||
if (ctx_pic->slice_count >= MAX_SLICES) {
|
||||
avpriv_request_sample(avctx, "%d slices in dxva2",
|
||||
ctx_pic->slice_count);
|
||||
return -1;
|
||||
|
||||
}
|
||||
if (!ctx_pic->bitstream)
|
||||
ctx_pic->bitstream = buffer;
|
||||
ctx_pic->bitstream_size += size;
|
||||
|
|
Loading…
Reference in New Issue