Mercurial > mplayer.hg
diff libmpcodecs/vd_libmpeg2.c @ 7957:31fd09cc9ba2
passing picture_type (might be usefull for postprocessing)
author | michael |
---|---|
date | Tue, 29 Oct 2002 11:26:26 +0000 |
parents | 77076fb29637 |
children | b465ba5897a3 |
line wrap: on
line diff
--- a/libmpcodecs/vd_libmpeg2.c Tue Oct 29 11:21:43 2002 +0000 +++ b/libmpcodecs/vd_libmpeg2.c Tue Oct 29 11:26:26 2002 +0000 @@ -290,5 +290,16 @@ if(ret) mpi=ret; // } + if(mpi){ + static int last_non_b_type= 0; + + if(picture->picture_coding_type == B_TYPE) + mpi->pict_type= B_TYPE; + else{ + mpi->pict_type= last_non_b_type; + last_non_b_type= picture->picture_coding_type; + } + } + return mpi; }