<div dir="ltr">Hi!<div>I'm reading H264 packets from an RTSP stream, and decoding into YUV. Part of this process involves a pointless conversion from RBSP -> SODB -> RBSP, via the adding of emulation_prevention_three_byte, and then subsequent removal of emulation_prevention_three_byte.</div><div><br></div><div>The packet timeline:</div><div>1. RTSP stream brings in RBSP packets (no three_byte)</div><div>2. I add 00.00.01 NAL start code, and three_byte escape.</div><div>3. I call avcodec_send_packet</div><div>4. three_byte needs to be unescaped again by the codec.</div><div><br></div><div>For reference, on my target platform Raspberry Pi 5, the encode/decode process runs at 302 MB/s, which is less than 1/10 of memory bandwidth (4690 MB/s), so the conversion penalty is not trivial.</div><div><br></div><div>Is there any way to pass the H264 codec RBSP data instead of SODB?</div><div><br></div><div>Thanks for reading!</div><div><br></div><div><br></div></div>