History

avplay: use the correct array size for stride.

AV_NUM_DATA_POINTERS instead of 4.

Anton Khirnov committed 14 years ago

Commit 91b3bfb1 parent 9bfe2181 file · +1 −1Browse files

Unified · Split

avplay.c+1−1
@@ -1527,7 +1527,7 @@ static int input_get_buffer(AVCodecContext *codec, AVFrame *pic) · 1526 unmodified lines
1527 AVFilterContext *ctx = codec->opaque;1527 AVFilterContext *ctx = codec->opaque;
1528 AVFilterBufferRef *ref;1528 AVFilterBufferRef *ref;
1529 int perms = AV_PERM_WRITE;1529 int perms = AV_PERM_WRITE;
1530 int i, w, h, stride[4];1530 int i, w, h, stride[AV_NUM_DATA_POINTERS];
1531 unsigned edge;1531 unsigned edge;
1532 int pixel_size;1532 int pixel_size;
1533 1533

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