OSDN Git Service
(root)
/
handbrake-jp
/
handbrake-jp-git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x264 bump to r1101
[handbrake-jp/handbrake-jp-git.git]
/
libhb
/
decavcodec.c
diff --git
a/libhb/decavcodec.c
b/libhb/decavcodec.c
index
2870991
..
5dd2224
100644
(file)
--- a/
libhb/decavcodec.c
+++ b/
libhb/decavcodec.c
@@
-550,13
+550,22
@@
static void flushDelayQueue( hb_work_private_t *pv )
static int decodeFrame( hb_work_private_t *pv, uint8_t *data, int size )
{
static int decodeFrame( hb_work_private_t *pv, uint8_t *data, int size )
{
- int got_picture;
+ int got_picture
, oldlevel = 0
;
AVFrame frame;
AVFrame frame;
+ if ( global_verbosity_level <= 1 )
+ {
+ oldlevel = av_log_get_level();
+ av_log_set_level( AV_LOG_QUIET );
+ }
if ( avcodec_decode_video( pv->context, &frame, &got_picture, data, size ) < 0 )
{
++pv->decode_errors;
}
if ( avcodec_decode_video( pv->context, &frame, &got_picture, data, size ) < 0 )
{
++pv->decode_errors;
}
+ if ( global_verbosity_level <= 1 )
+ {
+ av_log_set_level( oldlevel );
+ }
if( got_picture )
{
// ffmpeg makes it hard to attach a pts to a frame. if the MPEG ES
if( got_picture )
{
// ffmpeg makes it hard to attach a pts to a frame. if the MPEG ES