Mercurial > mplayer.hg
changeset 35260:b1b262fe38a4
Check for NULL before using the pointer.
author | reimar |
---|---|
date | Mon, 05 Nov 2012 21:37:25 +0000 |
parents | 7e835c67cf86 |
children | 1c18199bbf7c |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Mon Nov 05 21:23:46 2012 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Mon Nov 05 21:37:25 2012 +0000 @@ -702,6 +702,7 @@ return; } + if (mpi) { //printf("release buffer %d %d %d\n", mpi ? mpi->flags&MP_IMGFLAG_PRESERVE : -99, ctx->ip_count, ctx->b_count); if(mpi->flags&MP_IMGFLAG_PRESERVE) @@ -709,7 +710,6 @@ else ctx->b_count--; - if (mpi) { // release mpi (in case MPI_IMGTYPE_NUMBERED is used, e.g. for VDPAU) mpi->usage_count--; if (mpi->usage_count < 0) {