use AVERROR_EOF instead of EOF

pull/2077/head
Isaac Connor 2017-08-15 13:17:51 -04:00
parent 85202a0bfd
commit 38111e80a5
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ VideoStore::~VideoStore(){
} }
ret = avcodec_receive_packet( audio_output_context, &pkt ); ret = avcodec_receive_packet( audio_output_context, &pkt );
if ( ret < 0 ) { if ( ret < 0 ) {
if ( EOF != ret ) { if ( AVERROR_EOF != ret ) {
Error("ERror encoding audio while flushing (%d) (%s)", ret, av_err2str( ret )); Error("ERror encoding audio while flushing (%d) (%s)", ret, av_err2str( ret ));
} }
break; break;