Commit c64d2a63 authored by Martin Storsjö's avatar Martin Storsjö

rtpdec_jpeg: Don't use a bitstream writer for the EOI marker

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 20f325f3
......@@ -334,13 +334,9 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
if (flags & RTP_FLAG_MARKER) {
/* End of JPEG data packet. */
PutBitContext pbc;
uint8_t buf[2];
uint8_t buf[2] = { 0xff, EOI };
/* 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));
/* Prepare the JPEG packet. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment