mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-11 06:58:18 +00:00
rtpdec_jpeg: Don't use a bitstream writer for the EOI marker
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
20f325f320
commit
c64d2a63df
@ -334,13 +334,9 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
|
|||||||
|
|
||||||
if (flags & RTP_FLAG_MARKER) {
|
if (flags & RTP_FLAG_MARKER) {
|
||||||
/* End of JPEG data packet. */
|
/* End of JPEG data packet. */
|
||||||
PutBitContext pbc;
|
uint8_t buf[2] = { 0xff, EOI };
|
||||||
uint8_t buf[2];
|
|
||||||
|
|
||||||
/* Put EOI marker. */
|
/* Put EOI marker. */
|
||||||
init_put_bits(&pbc, buf, sizeof(buf));
|
|
||||||
put_marker(&pbc, EOI);
|
|
||||||
flush_put_bits(&pbc);
|
|
||||||
avio_write(jpeg->frame, buf, sizeof(buf));
|
avio_write(jpeg->frame, buf, sizeof(buf));
|
||||||
|
|
||||||
/* Prepare the JPEG packet. */
|
/* Prepare the JPEG packet. */
|
||||||
|
Loading…
Reference in New Issue
Block a user