summaryrefslogtreecommitdiffstats
path: root/libhb/platform
diff options
context:
space:
mode:
authordynaflash <[email protected]>2012-03-28 01:18:33 +0000
committerdynaflash <[email protected]>2012-03-28 01:18:33 +0000
commit6ebb6203b59aecb21d502788f3390a5ca2d51cd1 (patch)
tree90d70e1c19024cc447947aade7a5f3e8a8f9833e /libhb/platform
parent45b8f81a2e184e2b7deaf47afc49483766191a27 (diff)
MacGui: fix commit 4546 so it works on os x which is the filter pipeline rework from j45.
- libhb fix by Rodeo git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4547 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/platform')
-rw-r--r--libhb/platform/macosx/encca_aac.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/libhb/platform/macosx/encca_aac.c b/libhb/platform/macosx/encca_aac.c
index 66cac1e62..d6d0af0c9 100644
--- a/libhb/platform/macosx/encca_aac.c
+++ b/libhb/platform/macosx/encca_aac.c
@@ -415,15 +415,12 @@ static hb_buffer_t * Encode( hb_work_object_t * w )
return NULL;
}
- obuf->start = pv->pts;
- pv->pts += 90000LL * pv->isamples / pv->osamplerate;
- obuf->stop = pv->pts;
obuf->size = odesc.mDataByteSize;
-
- hb_buffer_tag_t tag;
- tag.id = HB_TAG_AUDIO;
- tag.u.audio.frametype = HB_FRAME_AUDIO;
- hb_buffer_add_tag( obuf, &tag );
+ obuf->s.start = pv->pts;
+ pv->pts += 90000LL * pv->isamples / pv->osamplerate;
+ obuf->s.stop = pv->pts;
+ obuf->s.type = AUDIO_BUF;
+ obuf->s.frametype = HB_FRAME_AUDIO;
return obuf;
}