History

Fix the size of the data to be copied from an AVFilterBuffer to an AVFilterBuffereRef in avfilter_default_get_video_buffer().

The error was being caused by the previous patch which resized AVFilterBuffer's data and linesize arrays to 8. Patch by S.N. Hemanth Meenakshisundaram" &smeenaks&ucsd&edu&. Originally committed as revision 24727 to svn://svn.ffmpeg.org/ffmpeg/trunk

S.N. Hemanth Meenakshisundaram committed 16 years ago

Commit 59ff3fd1 parent 209e4511 file · +2 −2Browse files

Unified · Split

libavfilter/defaults.c+2−2
@@ -59,8 +59,8 @@ AVFilterPicRef *avfilter_default_get_video_buffer(AVFilterLink *link, int perms, · 58 unmodified lines
5959 // SIMD-friendly
6060 av_fill_image_pointers(pic->data, pic->format, ref->h, buf, pic->linesize);
6161
62− memcpy(ref->data, pic->data, sizeof(pic->data));
63− memcpy(ref->linesize, pic->linesize, sizeof(pic->linesize));
62+ memcpy(ref->data, pic->data, 4*sizeof(pic->data[0]));
63+ memcpy(ref->linesize, pic->linesize, 4*sizeof(pic->linesize[0]));
6464
6565 return ref;
6666 }

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