Mercurial > libavcodec.hg
changeset 2971:1c22981c3498 libavcodec
new qscale type to distinguish H264
author | henry |
---|---|
date | Sun, 18 Dec 2005 13:29:09 +0000 |
parents | 583b6ac45c07 |
children | 4b4ee324b4c4 |
files | avcodec.h h264.c |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/avcodec.h Sun Dec 18 13:17:44 2005 +0000 +++ b/avcodec.h Sun Dec 18 13:29:09 2005 +0000 @@ -648,6 +648,7 @@ #define FF_QSCALE_TYPE_MPEG1 0 #define FF_QSCALE_TYPE_MPEG2 1 +#define FF_QSCALE_TYPE_H264 2 #define FF_BUFFER_TYPE_INTERNAL 1 #define FF_BUFFER_TYPE_USER 2 ///< Direct rendering buffers (image is (de)allocated by user)
--- a/h264.c Sun Dec 18 13:17:44 2005 +0000 +++ b/h264.c Sun Dec 18 13:29:09 2005 +0000 @@ -7552,6 +7552,7 @@ if(!s->current_picture_ptr) return buf_index; //no frame + s->current_picture_ptr->qscale_type= FF_QSCALE_TYPE_H264; s->current_picture_ptr->pict_type= s->pict_type; s->current_picture_ptr->key_frame= s->pict_type == I_TYPE && h->nal_unit_type == NAL_IDR_SLICE;