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
75 src_line += pic->linesize[0];75 src_line += pic->linesize[0];
76 }76 }
77 77
78 pkt->size = 4 * aligned_width * avctx->height;
79 pkt->flags |= AV_PKT_FLAG_KEY;78 pkt->flags |= AV_PKT_FLAG_KEY;
80 *got_packet = 1;79 *got_packet = 1;
81 return 0;80 return 0;
libavcodec/y41penc.c+0−1
@@ -80,7 +80,6 @@ static int y41p_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 79 unmodified lines
80 }80 }
81 }81 }
82 82
83 pkt->size = 1.5 * avctx->width * avctx->height;
84 pkt->flags |= AV_PKT_FLAG_KEY;83 pkt->flags |= AV_PKT_FLAG_KEY;
85 *got_packet = 1;84 *got_packet = 1;
86 return 0;85 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