OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20f325f
)
rtpdec_jpeg: Don't use a bitstream writer for the EOI marker
author
Martin Storsjö
<martin@martin.st>
Tue, 11 Sep 2012 09:46:44 +0000
(12:46 +0300)
committer
Martin Storsjö
<martin@martin.st>
Wed, 12 Sep 2012 09:09:02 +0000
(12:09 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpdec_jpeg.c
patch
|
blob
|
history
diff --git
a/libavformat/rtpdec_jpeg.c
b/libavformat/rtpdec_jpeg.c
index
4f52c31
..
4d8523d
100644
(file)
--- a/
libavformat/rtpdec_jpeg.c
+++ b/
libavformat/rtpdec_jpeg.c
@@
-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. */