summaryrefslogtreecommitdiffstats
path: root/libhb/encavcodec.c
diff options
context:
space:
mode:
authorsaintdev <[email protected]>2007-06-17 00:51:17 +0000
committersaintdev <[email protected]>2007-06-17 00:51:17 +0000
commitb7552e4d2409d1f2615caf418d4d0ac8d8bff981 (patch)
tree4b2b833a8e06dc16cf38c01182254d43612d8617 /libhb/encavcodec.c
parent51a0dfdd04c910de55aa09db8a7039ea25999735 (diff)
Switch buf->key to buf->frametype which is a bitmask telling us what type of frame we are dealing with.
This doesn't change any functionality, but I need to be able to distinguish between x264 IDR and I frames for the upcoming matroska muxer. This also has the side effect of making the code a little easier to read and maintain. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@623 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encavcodec.c')
-rw-r--r--libhb/encavcodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/encavcodec.c b/libhb/encavcodec.c
index 701caf923..7bccfc759 100644
--- a/libhb/encavcodec.c
+++ b/libhb/encavcodec.c
@@ -195,7 +195,7 @@ int encavcodecWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
frame );
buf->start = in->start;
buf->stop = in->stop;
- buf->key = pv->context->coded_frame->key_frame;
+ buf->frametype = pv->context->coded_frame->key_frame ? HB_FRAME_KEY : HB_FRAME_REF;
av_free( frame );