Skip to content

Conversation

jdsgomes
Copy link
Contributor

Summary:
According to the documentation the packet has to be freed after av_read_frame() call.

 If pkt->buf is NULL, then the packet is valid until the next
 av_read_frame() or until avformat_close_input(). Otherwise the packet
 is valid indefinitely. In both cases the packet must be freed with
 av_packet_unref when it is no longer needed.

Differential Revision: D38747612

Summary:
According to the documentation the packet has to be freed after `av_read_frame()` call.
```
 If pkt->buf is NULL, then the packet is valid until the next
 av_read_frame() or until avformat_close_input(). Otherwise the packet
 is valid indefinitely. In both cases the packet must be freed with
 av_packet_unref when it is no longer needed.
```

Differential Revision: D38747612

fbshipit-source-id: 28c2d195ee1be63531567a5a4e05f18ad7f6970f
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D38747612

@jdsgomes jdsgomes changed the base branch from fbsync to main August 17, 2022 08:40
@jdsgomes jdsgomes changed the base branch from main to fbsync August 17, 2022 08:41
facebook-github-bot pushed a commit that referenced this pull request Aug 17, 2022
Summary:
Pull Request resolved: #6432

According to the documentation the packet has to be freed after `av_read_frame()` call.
```
 If pkt->buf is NULL, then the packet is valid until the next
 av_read_frame() or until avformat_close_input(). Otherwise the packet
 is valid indefinitely. In both cases the packet must be freed with
 av_packet_unref when it is no longer needed.
```

Differential Revision: D38747612

fbshipit-source-id: 2e4ccc8365d0d97e5da756ff9c1dcdf27ed323f0
NicolasHug pushed a commit to NicolasHug/vision that referenced this pull request Aug 18, 2022
Summary:
Pull Request resolved: pytorch#6432

According to the documentation the packet has to be freed after `av_read_frame()` call.
```
 If pkt->buf is NULL, then the packet is valid until the next
 av_read_frame() or until avformat_close_input(). Otherwise the packet
 is valid indefinitely. In both cases the packet must be freed with
 av_packet_unref when it is no longer needed.
```

Differential Revision: D38747612

fbshipit-source-id: 2e4ccc8365d0d97e5da756ff9c1dcdf27ed323f0
@NicolasHug
Copy link
Member

@jdsgomes I assume this PR was from the "Export to GitHub" interface on fbcode, maybe it can be closed? The corresponding diff was landed and the sync PR is #6443

@datumbox
Copy link
Contributor

@NicolasHug That's that it is indeed. I spoke earlier with Joao and this came from the internal diff. Closing as you suggested.

@datumbox datumbox closed this Aug 18, 2022
NicolasHug added a commit that referenced this pull request Aug 18, 2022
Summary:
Pull Request resolved: #6432

According to the documentation the packet has to be freed after `av_read_frame()` call.
```
 If pkt->buf is NULL, then the packet is valid until the next
 av_read_frame() or until avformat_close_input(). Otherwise the packet
 is valid indefinitely. In both cases the packet must be freed with
 av_packet_unref when it is no longer needed.
```

Differential Revision: D38747612

fbshipit-source-id: 2e4ccc8365d0d97e5da756ff9c1dcdf27ed323f0

Co-authored-by: Oleksandr Voietsa <ovoietsa@fb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants