mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 06:39:39 +00:00
Log av_write_frame failure
Refs #2218 <https://github.com/Genymobile/scrcpy/issues/2218>
This commit is contained in:
parent
b77932a5b7
commit
3c8f996822
1 changed files with 7 additions and 1 deletions
|
@ -252,7 +252,13 @@ recorder_write(struct recorder *recorder, AVPacket *packet) {
|
||||||
}
|
}
|
||||||
|
|
||||||
recorder_rescale_packet(recorder, packet);
|
recorder_rescale_packet(recorder, packet);
|
||||||
return av_write_frame(recorder->ctx, packet) >= 0;
|
int ret = av_write_frame(recorder->ctx, packet);
|
||||||
|
if (ret < 0) {
|
||||||
|
LOGE("Could not write frame: %d\n", ret);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue