Python Forum
Four sequential bytes; Need to remove high order bit in each to get correct output
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Four sequential bytes; Need to remove high order bit in each to get correct output
#1
I am writing program to manipulate the contents of an .MP3 file. In reading the header in
binary(byte) mode, decoding the header Size field is giving me problems. See ID3.org. The definition
of the field is
ID3v2 size = 4 * %0xxxxxxx

I have been away from programming for about 15 years and need to relearn the basics.

Not looking for code here, just a pointer on how to remove 4 bits from the inside of the field.

Huh

Thanks,

GrandSean
Reply


Messages In This Thread
Four sequential bytes; Need to remove high order bit in each to get correct output - by GrandSean - Jan-20-2021, 03:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sequential number for rows retrieved and storing the Primary UKey to the line number GYKR 2 584 Aug-22-2023, 10:14 AM
Last Post: GYKR
  Create a sequential number (counter) and reset at each duplicate Mekala 0 1,741 Sep-20-2020, 05:02 AM
Last Post: Mekala
  attribute error instead of correct output MaartenRo 2 2,206 Aug-28-2020, 10:22 AM
Last Post: Larz60+
  Visual Studio-remove Output clutter mds 14 8,855 Jun-04-2020, 11:47 PM
Last Post: mds
  Finding sequential invoice william888 0 1,375 Mar-24-2020, 12:41 AM
Last Post: william888
  Sequential color background swisha 2 2,028 Mar-05-2020, 03:43 PM
Last Post: Larz60+
  GPIO time in HIGH LOW boris_za 1 2,284 Dec-07-2019, 01:48 PM
Last Post: Larz60+
  Not getting correct output supriya0307 5 5,560 Sep-10-2019, 10:28 PM
Last Post: ichabod801
  Not quite getting the correct Output from a function twinpiques 3 2,666 Aug-04-2019, 11:53 PM
Last Post: twinpiques
  understanding output of bytes/raw data rootVIII 3 2,781 Aug-01-2019, 01:00 PM
Last Post: rootVIII

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020