mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
82655bca35
commit
522dcabb78
@ -252,6 +252,8 @@ decode_audio_frame(AVFrame *input_frame, AVFormatContext *input_format_context,
|
||||
if (ret == AVERROR_EOF) { r = Py_True; *finished = true; goto cleanup; }
|
||||
if (ret < 0) { averror_as_python(ret, __LINE__); goto cleanup; }
|
||||
*data_present = true;
|
||||
r = Py_True;
|
||||
|
||||
cleanup:
|
||||
av_packet_free(&input_packet);
|
||||
return r;
|
||||
@ -312,7 +314,6 @@ encode_audio_frame(AVFrame *frame, AVFormatContext *output_format_context, AVCod
|
||||
Py_END_ALLOW_THREADS;
|
||||
if (ret == AVERROR(EAGAIN)) {
|
||||
goto ok;
|
||||
/* If the last frame has been encoded, stop encoding. */
|
||||
} else if (ret == AVERROR_EOF) {
|
||||
goto ok;
|
||||
} else if (ret < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user