diff options
author | Graham Finlayson <gfinlayson@google.com> | 2012-10-01 16:11:23 -0700 |
---|---|---|
committer | Graham Finlayson <gfinlayson@google.com> | 2012-10-01 16:11:23 -0700 |
commit | 1e0e80cfff9fe03a5af570c5113932be6f2840be (patch) | |
tree | 47a81bde9a30ca6eccc8d9df0c8500166b4e123a | |
parent | a65d37f85fa906853f11aa2463ea086d4fec1f30 (diff) | |
download | lame-jumper-stable.tar.gz |
Minor frame size fixjumper-stable-altjumper-stable
* If encoding in CBR don't care that the VBR_seek_table is empty when
calculating the frame size.
Change-Id: I8b1a8bce870fa4c9c20298887ebfc4b638142ad6
-rw-r--r-- | libmp3lame/VbrTag.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libmp3lame/VbrTag.c b/libmp3lame/VbrTag.c index 3aaf8fd..ac67c22 100644 --- a/libmp3lame/VbrTag.c +++ b/libmp3lame/VbrTag.c @@ -895,8 +895,10 @@ lame_get_lametag_frame(lame_global_flags const *gfp, unsigned char *buffer, size if (gfc->Class_ID != LAME_ID) { return 0; } - if (gfc->VBR_seek_table.pos <= 0) { - return 0; + if (gfp->VBR != vbr_off) { + if (gfc->VBR_seek_table.pos <= 0) { + return 0; + } } if (size < gfc->VBR_seek_table.TotalFrameSize) { return gfc->VBR_seek_table.TotalFrameSize; |