diff mpegaudio.c @ 234:5fc0c3af3fe4 libavcodec

alternative bitstream writer (disabled by default, uncomment #define ALT_BISTREAM_WRITER in common.h if u want to try it)
author michaelni
date Tue, 12 Feb 2002 15:43:16 +0000
parents 2e88e3afecd0
children fce0a2520551
line wrap: on
line diff
--- a/mpegaudio.c	Sun Feb 10 06:10:50 2002 +0000
+++ b/mpegaudio.c	Tue Feb 12 15:43:16 2002 +0000
@@ -763,7 +763,7 @@
     encode_frame(s, bit_alloc, padding);
     
     s->nb_samples += MPA_FRAME_SIZE;
-    return s->pb.buf_ptr - s->pb.buf;
+    return pbBufPtr(&s->pb) - s->pb.buf;
 }