projects
/
libam7xxx.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
am7xxx: check the return value of libusb_get_configuration()
[libam7xxx.git]
/
examples
/
am7xxx-play.c
diff --git
a/examples/am7xxx-play.c
b/examples/am7xxx-play.c
index
2fa615a
..
f63fbfd
100644
(file)
--- a/
examples/am7xxx-play.c
+++ b/
examples/am7xxx-play.c
@@
-354,6
+354,7
@@
static int am7xxx_play(const char *input_format_string,
goto cleanup_out_buf;
}
goto cleanup_out_buf;
}
+ got_packet = 0;
while (run) {
/* read packet */
ret = av_read_frame(input_ctx.format_ctx, &in_packet);
while (run) {
/* read packet */
ret = av_read_frame(input_ctx.format_ctx, &in_packet);
@@
-381,11
+382,11
@@
static int am7xxx_play(const char *input_format_string,
goto end_while;
}
goto end_while;
}
- /* if we g
e
t the complete frame */
+ /* if we g
o
t the complete frame */
if (got_picture) {
/* convert it to YUV */
sws_scale(sw_scale_ctx,
if (got_picture) {
/* convert it to YUV */
sws_scale(sw_scale_ctx,
- (const uint8_t * const*)picture_raw->data,
+ (const uint8_t * const
*)picture_raw->data,
picture_raw->linesize,
0,
(input_ctx.codec_ctx)->height,
picture_raw->linesize,
0,
(input_ctx.codec_ctx)->height,