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:
bc077ca
)
ffplay: Prevent 0/0 aspect from being passed on to lavfi
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 14 Oct 2012 21:40:14 +0000
(23:40 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 14 Oct 2012 21:40:14 +0000
(23:40 +0200)
0/0 fails to be parsed
Fixes Ticket1814
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffplay.c
patch
|
blob
|
history
diff --git
a/ffplay.c
b/ffplay.c
index
5a2c772
..
4223102
100644
(file)
--- a/
ffplay.c
+++ b/
ffplay.c
@@
-1614,7
+1614,7
@@
static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const c
"video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d",
codec->width, codec->height, codec->pix_fmt,
is->video_st->time_base.num, is->video_st->time_base.den,
- codec->sample_aspect_ratio.num,
codec->sample_aspect_ratio.den
);
+ codec->sample_aspect_ratio.num,
FFMAX(codec->sample_aspect_ratio.den, 1)
);
if ((ret = avfilter_graph_create_filter(&filt_src,
avfilter_get_by_name("buffer"),