Skip to content

Commit

Permalink
* Fix crash in FFmpegFrameRecorder.flush() for HLS format and poss…
Browse files Browse the repository at this point in the history
…ibly others (pull #1374)
  • Loading branch information
egorapolonov authored and saudet committed Jan 24, 2020
1 parent 0e565c1 commit fe48427
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

* Fix crash in `FFmpegFrameRecorder.flush()` for HLS format and possibly others ([pull #1374](https://github.com/bytedeco/javacv/pull/1374))
* Fix "Resetting to invalid mark" `IOException` thrown on `FFmpegFrameGrabber.release()` ([issue #911](https://github.com/bytedeco/javacv/issues/911))
* Upgrade dependencies for OpenCV 4.2.0, FFmpeg 4.2.2, Leptonica 1.79.0, and Tesseract 4.1.1
* Add `Seekable` and `SeekableByteArrayOutputStream` to be used with `FFmpegFrameRecorder` ([pull #1350](https://github.com/bytedeco/javacv/pull/1350))
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/bytedeco/javacv/FFmpegFrameRecorder.java
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ public void flush() throws Exception {
while (video_st != null && ifmt_ctx == null && recordImage(0, 0, 0, 0, 0, AV_PIX_FMT_NONE, (Buffer[])null));
while (audio_st != null && ifmt_ctx == null && recordSamples(0, 0, (Buffer[])null));

if (interleaved && video_st != null && audio_st != null) {
if (interleaved && (video_st != null || audio_st != null)) {
av_interleaved_write_frame(oc, null);
} else {
av_write_frame(oc, null);
Expand Down

0 comments on commit fe48427

Please sign in to comment.