Commit 352aeb7a authored by moto's avatar moto Committed by Facebook GitHub Bot
Browse files

Fix header include (#2135)

Summary:
MSVS is strict on header and would not allow `std::runtime_error`
without `<stdexcept>`.

Also this commit removes the stray `"libavutil/frame.h"`,
inserted by IDE, which I missed.

Ref https://github.com/pytorch/audio/issues/2124

Pull Request resolved: https://github.com/pytorch/audio/pull/2135

Reviewed By: carolineechen

Differential Revision: D33419120

Pulled By: mthrok

fbshipit-source-id: 328e723b70a3608133d9ddef9fc4a95e5d90e61d
parent 601acce1
#include <torchaudio/csrc/ffmpeg/ffmpeg.h>
#include <stdexcept>
namespace torchaudio {
namespace ffmpeg {
......
#include <torch/script.h>
#include <torchaudio/csrc/ffmpeg/streamer.h>
#include <stdexcept>
namespace torchaudio {
namespace ffmpeg {
......
#include <torchaudio/csrc/ffmpeg/sink.h>
#include <stdexcept>
namespace torchaudio {
namespace ffmpeg {
......
#include <torchaudio/csrc/ffmpeg/stream_processor.h>
#include "libavutil/frame.h"
#include <stdexcept>
namespace torchaudio {
namespace ffmpeg {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment