History

r210enc and y41penc: don't set same pkt->size twice

Paul B Mahol committed 14 years ago

Commit d00bc6a1 parent 8a085032 files · +0 −2Browse files

Unified · Split

2 files
  1. libavcodec/r210enc.c +0 −1
  2. libavcodec/y41penc.c +0 −1
libavcodec/r210enc.c+0−1
@@ -75,7 +75,6 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 74 unmodified lines
7575 src_line += pic->linesize[0];
7676 }
7777
78− pkt->size = 4 * aligned_width * avctx->height;
7978 pkt->flags |= AV_PKT_FLAG_KEY;
8079 *got_packet = 1;
8180 return 0;
libavcodec/y41penc.c+0−1
@@ -80,7 +80,6 @@ static int y41p_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 79 unmodified lines
8080 }
8181 }
8282
83− pkt->size = 1.5 * avctx->width * avctx->height;
8483 pkt->flags |= AV_PKT_FLAG_KEY;
8584 *got_packet = 1;
8685 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t