[FFmpeg-trac] #1067(undetermined:new): VPX encoding fails on intialization with av_log_set_level( AV_LOG_DEBUG );
FFmpeg
trac at avcodec.org
Wed Mar 14 19:25:25 CET 2012
#1067: VPX encoding fails on intialization with av_log_set_level( AV_LOG_DEBUG );
-------------------------------------+-------------------------------------
Reporter: fAX | Type: defect
Status: new | Priority: normal
Component: | Version: 0.10
undetermined | Blocked By:
Keywords: crash | Reproduced by developer: 0
AV_LOG_DEBUG, CODEC_ID_VP8, |
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
With FFMPEG 0.10/MinGW32 the following code crashes in the last if:
av_log_set_level( AV_LOG_DEBUG );
/* register all the codecs */
av_register_all( );
codec = avcodec_find_encoder( CODEC_ID_VP8 );
if ( !codec ) {
fprintf( stderr, "codec not found\n" );
exit( 1 );
}
c = avcodec_alloc_context3( codec );
/* put sample parameters */
c->bit_rate = 400000;
/* resolution must be a multiple of two */
c->width = 352;
c->height = 288;
/* open it */
if ( avcodec_open2( c, codec, NULL ) < 0 ) {
fprintf( stderr, "could not open codec\n" );
exit( 1 );
}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1067>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list