Mercurial > mplayer.hg
comparison libmpcodecs/vd_ffmpeg.c @ 9991:8568ef7f6c2f
segfault fix
author | michael |
---|---|
date | Sat, 26 Apr 2003 10:32:45 +0000 |
parents | cd76f332bdee |
children | 312eb2923169 |
comparison
equal
deleted
inserted
replaced
9990:048847439f96 | 9991:8568ef7f6c2f |
---|---|
392 ctx->ip_count++; | 392 ctx->ip_count++; |
393 flags|= MP_IMGFLAG_PRESERVE|MP_IMGFLAG_READABLE | 393 flags|= MP_IMGFLAG_PRESERVE|MP_IMGFLAG_READABLE |
394 | (ctx->do_slices ? MP_IMGFLAG_DRAW_CALLBACK : 0); | 394 | (ctx->do_slices ? MP_IMGFLAG_DRAW_CALLBACK : 0); |
395 } | 395 } |
396 | 396 |
397 if(init_vo(sh)<0 || ctx->b_count>1 || ctx->ip_count>2){ | 397 if(init_vo(sh)<0){ |
398 avctx->release_buffer= avcodec_default_release_buffer; | |
399 avctx->get_buffer= avcodec_default_get_buffer; | |
400 return avctx->get_buffer(avctx, pic); | |
401 } | |
402 | |
403 if(ctx->b_count>1 || ctx->ip_count>2){ | |
398 printf("DR1 failure\n"); | 404 printf("DR1 failure\n"); |
399 | 405 |
400 ctx->do_dr1=0; //FIXME | 406 ctx->do_dr1=0; //FIXME |
401 avctx->get_buffer= avcodec_default_get_buffer; | 407 avctx->get_buffer= avcodec_default_get_buffer; |
402 return avctx->get_buffer(avctx, pic); | 408 return avctx->get_buffer(avctx, pic); |